|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.splat.iface.LineProperties
public class LineProperties
LineProperties is a class for storing and documenting the properties of a spectral line fit.
DivaPlot
Field Summary | |
---|---|
protected static int |
AST_DOUBLE_X
|
protected static int |
AST_DOUBLE_Y
|
protected static int |
DOUBLE
|
static int |
GAUSS
|
protected static int |
INTEGER
Methods used for wrapping properties as Number Objects. |
static int |
LORENTZ
|
static String[] |
NAMES
|
static int |
NTYPES
The number of fit types, their enumerations and short descriptions. |
protected DivaPlot |
plot
The DivaPlot that we are working with. |
static String[][] |
PROP_NAMES
The symbolic names of the properties we're storing for each fit type. |
static int |
QUICK
|
protected int |
type
The type of properties we're storing. |
static int |
VOIGT
|
protected static int[][] |
WRAPPERS
|
Constructor Summary | |
---|---|
LineProperties(int type,
DivaPlot plot)
Create an instance. |
Method Summary | |
---|---|
static int |
count(int type)
Return number of values we would return given the type of measurements that are being stored. |
double |
getField(int index)
Get the value of one of our fields. |
static String |
getName(int type,
int index)
Return the name of a property field. |
static Class |
getNumberClass(int type,
int index)
Get the class one of our fields wrapped in a suitable Number object would use for a given type. |
Number |
getNumberField(int index)
Get the value of one of our field wrapped in a suitable Number object. |
protected int |
getValidIndex(int index)
Get a valid property index for the current type. |
protected int |
getValidType(int type)
Get a valid type index. |
void |
setField(int index,
double value)
Set the value of one of our fields. |
void |
setFields(double[] values)
Set all the values, if the given array contains enough. |
void |
setPlot(DivaPlot plot)
Set the plot used. |
String |
toString()
Write a text description of this line. |
int |
type()
Get the type of properties that we're storing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int NTYPES
public static final int QUICK
public static final int GAUSS
public static final int LORENTZ
public static final int VOIGT
public static final String[] NAMES
public static final String[][] PROP_NAMES
protected static final int INTEGER
protected static final int AST_DOUBLE_X
protected static final int AST_DOUBLE_Y
protected static final int DOUBLE
protected static final int[][] WRAPPERS
protected int type
protected DivaPlot plot
Constructor Detail |
---|
public LineProperties(int type, DivaPlot plot)
type
- the type of line properties we're dealing with.plot
- the plotMethod Detail |
---|
public void setPlot(DivaPlot plot)
plot
- The new plot valuepublic static int count(int type)
type
- the type of line properties we're dealing with.
public static String getName(int type, int index)
type
- the type of line properties we're dealing with.index
- the index of the property
public int type()
public double getField(int index)
public Number getNumberField(int index)
public static Class getNumberClass(int type, int index)
type
- Description of the Parameterindex
- Description of the Parameter
public void setField(int index, double value)
public void setFields(double[] values)
protected int getValidType(int type)
protected int getValidIndex(int index)
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |