Package uk.ac.starlink.topcat.plot2
Class AutoSpecifier<T>
java.lang.Object
uk.ac.starlink.ttools.plot2.config.SpecifierPanel<T>
uk.ac.starlink.topcat.plot2.AutoSpecifier<T>
- All Implemented Interfaces:
uk.ac.starlink.ttools.plot2.config.Specifier<T>
public class AutoSpecifier<T>
extends uk.ac.starlink.ttools.plot2.config.SpecifierPanel<T>
Decorates a specifier with an Auto button.
This is a checkbox which if checked overrides the state of the
base specifier and returns an alternative externally supplied
value instead.
- Since:
- 13 Mar 2013
- Author:
- Mark Taylor
-
Constructor Summary
ConstructorsConstructorDescriptionAutoSpecifier
(uk.ac.starlink.ttools.plot2.config.Specifier<T> base) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected JComponent
Returns the value that will be returend when the auto button is on.boolean
isAuto()
Indicates whether the auto button is on or off.void
setAuto
(boolean isAuto) Sets whether the auto button is on or off.void
setAutoValue
(T autoValue) Sets the value specified when the auto button is on.void
setSpecifiedValue
(T value) void
submitReport
(uk.ac.starlink.ttools.plot2.ReportMap report) Methods inherited from class uk.ac.starlink.ttools.plot2.config.SpecifierPanel
addActionListener, fireAction, getActionForwarder, getChangeForwarder, getComponent, isXFill, removeActionListener
-
Constructor Details
-
AutoSpecifier
Constructor.- Parameters:
base
- base specifier
-
-
Method Details
-
createComponent
- Specified by:
createComponent
in classuk.ac.starlink.ttools.plot2.config.SpecifierPanel<T>
-
setAutoValue
Sets the value specified when the auto button is on.- Parameters:
autoValue
- new auto value
-
getAutoValue
Returns the value that will be returend when the auto button is on.- Returns:
- auto value
-
setAuto
public void setAuto(boolean isAuto) Sets whether the auto button is on or off.- Parameters:
isAuto
- true for automatic values
-
isAuto
public boolean isAuto()Indicates whether the auto button is on or off.- Returns:
- true iff the auto value will be returned
-
getSpecifiedValue
-
setSpecifiedValue
-
submitReport
public void submitReport(uk.ac.starlink.ttools.plot2.ReportMap report)
-