|
|||||||||
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<T>
uk.ac.starlink.ttools.plot2.config.MultiSpecifierPanel<T>
public class MultiSpecifierPanel<T>
SpecifierPanel subclass that puts a number of alternative SpecifierPanels alongside each other and lets the user interact with any one of them to perform a selection.
Constructor Summary | |
---|---|
MultiSpecifierPanel(boolean isXFill,
T dflt,
List<Specifier<T>> specifiers)
Constructor. |
Method Summary | |
---|---|
protected JComponent |
createComponent()
Abstract method called lazily during getComponent
to obtain the graphical component used by this specifier. |
T |
getSpecifiedValue()
Returns the typed value currently specified by the graphical component. |
void |
setSpecifiedValue(T value)
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 MultiSpecifierPanel(boolean isXFill, T dflt, List<Specifier<T>> specifiers)
isXFill
- true if the graphical component should expand to fill
the available horizontal spacedflt
- default valuespecifiers
- list of alternative specifier instancesMethod Detail |
---|
protected 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<T>
public void setSpecifiedValue(T value)
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.
value
- new valuepublic T getSpecifiedValue()
Specifier
public void submitReport(ReportMap report)
Specifier
report
- report of a plot partially specified by this object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |