|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot2.layer.LevelMode
@Equality public abstract class LevelMode
Defines a strategy for calculating contour level values from an array of data.
Field Summary | |
---|---|
static LevelMode |
EQU
Equal-area scaling - levels are spaced to provide equally sized inter-contour regions. |
static LevelMode |
LINEAR
Linear scaling - level values are equally spaced. |
static LevelMode |
LOG
Logarithmic scaling - level logarithms are equally spaced |
static LevelMode[] |
MODES
Known level mode instances. |
Constructor Summary | |
---|---|
protected |
LevelMode(String name,
String description)
Constructor. |
Method Summary | |
---|---|
abstract double[] |
calculateLevels(NumberArray array,
int nLevel,
double offset,
boolean isCounts)
Calculates the contour levels for a given data array. |
String |
getDescription()
Returns a short description of this mode. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static LevelMode LINEAR
public static LevelMode LOG
public static LevelMode EQU
public static final LevelMode[] MODES
Constructor Detail |
---|
protected LevelMode(String name, String description)
name
- mode namedescription
- short description of modeMethod Detail |
---|
public abstract double[] calculateLevels(NumberArray array, int nLevel, double offset, boolean isCounts)
array
- data arraynLevel
- number of requested levels; actual level count
may not be the same as this depending on dataoffset
- offset from zero of the value of the first contour,
expected in the range 0..1;
adjusting this will sweep contours over all positionsisCounts
- true if the values are counts rather than
continuously varying; if true, some adjustments
are made on the basis of the assumption that
differences of scale smaller than 1 don't make
much sensepublic String getDescription()
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |