|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot2.config.SpecifierPanel<Subrange>
uk.ac.starlink.ttools.plot2.config.UnitRangeSpecifier
public class UnitRangeSpecifier
Specifier for acquiring range for which both bounds fall between 0 and 1. The range may be of zero extent, in which case the result can be specified as a single value rather than a pair.
Constructor Summary | |
---|---|
UnitRangeSpecifier(Subrange reset)
Constructor. |
Method Summary | |
---|---|
JComponent |
createComponent()
Abstract method called lazily during getComponent
to obtain the graphical component used by this specifier. |
Subrange |
getSpecifiedValue()
Returns the typed value currently specified by the graphical component. |
boolean |
isSliderActive()
Returns true if the GUI is currently using the slider control, false if it's using the text fields. |
void |
setSliderActive(boolean isActive)
Sets the GUI to use the slider rather than the text fields to acquire values. |
void |
setSpecifiedValue(Subrange range)
Sets the typed value represented by the graphical component. |
void |
submitReport(ReportMap report)
Accepts information about a completed plot that was drawn with input from this specifier. |
Methods inherited from class uk.ac.starlink.ttools.plot2.config.SpecifierPanel |
---|
addActionListener, fireAction, getActionForwarder, getChangeForwarder, getComponent, isXFill, removeActionListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UnitRangeSpecifier(Subrange reset)
reset
- reset (default) valueMethod Detail |
---|
public JComponent createComponent()
SpecifierPanel
getComponent
to obtain the graphical component used by this specifier.
It will be called a maximum of once. It is not necessary that
the component actually be created in this method, for instance
it may be created at construction time if that's more convenient.
createComponent
in class SpecifierPanel<Subrange>
public Subrange getSpecifiedValue()
Specifier
public void setSpecifiedValue(Subrange range)
Specifier
getSpecifiedValue
should yield the same result.
However if a value is set which is of the correct type but cannot be represented by this specifier, results are unpredictable.
range
- new valuepublic void submitReport(ReportMap report)
Specifier
report
- report of a plot partially specified by this objectpublic boolean isSliderActive()
public void setSliderActive(boolean isActive)
isActive
- true for slider, false for text
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |