|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--GrapherGUI.SliderMatrix
Container object for ParameterPanels. Contains a method to easily access the current value of every parameter.
ParameterPanel
Constructor Summary | |
SliderMatrix(int capacity)
Constructor |
Method Summary | |
boolean |
add(double min,
double max,
double start,
int numticks,
java.lang.String imagefile,
java.lang.String name)
Add a parameter to the array. |
int |
capacity()
Maximum capacity of this object. |
javax.swing.JPanel |
getAllSliders()
Creates a JPanel of ParameterPanels. |
javax.swing.JSlider[] |
getJSliderArray()
Returns an array of pointers to the JSlider objects in the ParameterPanels. |
int |
size()
Current number of parameters entered. |
double |
val(java.lang.String param)
Return the value of a certain parameter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SliderMatrix(int capacity)
capacity
- maximum number of parameters this object will holdMethod Detail |
public boolean add(double min, double max, double start, int numticks, java.lang.String imagefile, java.lang.String name)
min
- minimum value the parameter can takemax
- maximum value the parameter can takestart
- starting value of the parameternumticks
- number of marks on the sliderimagefile
- the JPEF or GIF image of this parameter. If none, set to null.name
- string identifier for this parameter
public javax.swing.JPanel getAllSliders()
public javax.swing.JSlider[] getJSliderArray()
JSlider
public int size()
public int capacity()
public double val(java.lang.String param) throws java.lang.Error
param
- string identifier (entered as name in method add()
java.lang.Error
- If a non-existing parameter is requested, this method will throw and instance
of Error.Error
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |