2 |
26 Feb 07 |
jari |
1 |
/* |
2 |
26 Feb 07 |
jari |
Copyright @ 1999-2003, The Institute for Genomic Research (TIGR). |
2 |
26 Feb 07 |
jari |
All rights reserved. |
2 |
26 Feb 07 |
jari |
4 |
*/ |
2 |
26 Feb 07 |
jari |
5 |
/* |
2 |
26 Feb 07 |
jari |
* $RCSfile: ArrayViewerCanvas.java,v $ |
2 |
26 Feb 07 |
jari |
* $Revision: 1.3 $ |
2 |
26 Feb 07 |
jari |
* $Date: 2005/03/10 15:44:16 $ |
2 |
26 Feb 07 |
jari |
* $Author: braistedj $ |
2 |
26 Feb 07 |
jari |
* $State: Exp $ |
2 |
26 Feb 07 |
jari |
11 |
*/ |
2 |
26 Feb 07 |
jari |
12 |
package org.tigr.microarray.mev; |
2 |
26 Feb 07 |
jari |
13 |
|
2 |
26 Feb 07 |
jari |
14 |
import org.tigr.util.awt.Drawable; |
2 |
26 Feb 07 |
jari |
15 |
|
2 |
26 Feb 07 |
jari |
16 |
public abstract class ArrayViewerCanvas extends Drawable { |
2 |
26 Feb 07 |
jari |
17 |
public ArrayViewerCanvas(int preXSpacing, int postXSpacing, int preYSpacing, int postYSpacing) { |
2 |
26 Feb 07 |
jari |
18 |
super(0, preXSpacing + postXSpacing, 0, preYSpacing + postYSpacing); |
2 |
26 Feb 07 |
jari |
19 |
} |
2 |
26 Feb 07 |
jari |
20 |
|
2 |
26 Feb 07 |
jari |
21 |
protected String space(int val, int mark) { |
2 |
26 Feb 07 |
jari |
22 |
String retString = ""; |
2 |
26 Feb 07 |
jari |
23 |
for (int i = 1; i < (mark - val + 3); i++) retString += " "; |
2 |
26 Feb 07 |
jari |
24 |
return retString; |
2 |
26 Feb 07 |
jari |
25 |
} |
2 |
26 Feb 07 |
jari |
26 |
} |