stsci.sky
Class FullHTMlist
java.lang.Object
|
+--stsci.sky.FullHTMlist
- All Implemented Interfaces:
- ColorLookup
- public class FullHTMlist
- extends java.lang.Object
- implements ColorLookup
Method Summary |
void |
colourInit()
set up colour scale and offsets |
java.awt.Color |
getColour(double value)
|
double |
getRange()
|
void |
handleLoad(java.lang.String line,
int count)
Supposed to be a HTMNUMBER followed by a double
i.e. |
void |
init(int depth)
initialize blank |
void |
loadFromFile(java.lang.String file)
first open the file - then see what depth we need
then read it and get max an min
also insert NaN in the values so any values not
in file will be blank |
double |
maxValue()
|
double |
minValue()
|
void |
plot(java.awt.Graphics g,
PlotArea trans,
boolean oneEighty,
boolean galactic)
|
void |
plotTriangle(java.awt.Graphics g,
SpatialVector[] vert,
java.awt.Color c,
PlotArea trans,
boolean oneEighty)
|
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
index
protected SpatialIndex index
max
protected double max
min
protected double min
values
protected double[] values
colcut
public int colcut
scaleColor
protected float scaleColor
bc
protected float bc
rc
protected float rc
gc
protected float gc
bof
protected float bof
rof
protected float rof
gof
protected float gof
FullHTMlist
public FullHTMlist(int depth)
FullHTMlist
public FullHTMlist(java.lang.String file)
throws java.lang.Exception
- read values from file
maxValue
public double maxValue()
- Specified by:
maxValue
in interface ColorLookup
minValue
public double minValue()
- Specified by:
minValue
in interface ColorLookup
init
public void init(int depth)
- initialize blank
loadFromFile
public void loadFromFile(java.lang.String file)
throws java.lang.Exception
- first open the file - then see what depth we need
then read it and get max an min
also insert NaN in the values so any values not
in file will be blank
handleLoad
public void handleLoad(java.lang.String line,
int count)
- Supposed to be a HTMNUMBER followed by a double
i.e.
N12000 23.9
S12000 78.2
etc.
All triangles must be the same depth !
You can have a partial list thats fine.
this gets the max min as it loads the data
getRange
public double getRange()
plot
public void plot(java.awt.Graphics g,
PlotArea trans,
boolean oneEighty,
boolean galactic)
plotTriangle
public void plotTriangle(java.awt.Graphics g,
SpatialVector[] vert,
java.awt.Color c,
PlotArea trans,
boolean oneEighty)
colourInit
public void colourInit()
- set up colour scale and offsets
getColour
public java.awt.Color getColour(double value)
- Specified by:
getColour
in interface ColorLookup