Package uk.ac.starlink.topcat.plot2
Enum Class PlotWindowType
- All Implemented Interfaces:
Serializable
,Comparable<PlotWindowType>
,Constable
Enum defining the different plot window types.
A method to create an instance of each window is provided.
- Since:
- 10 May 2018
- Author:
- Mark Taylor
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionabstract StackPlotWindow<?,
?> createWindow
(Component parent, ListModel<TopcatModel> tablesModel) Creates an instance of this plot type's window.Returns short description for plot type.getIcon()
Returns plot type icon.getName()
Returns plot type name.toString()
static PlotWindowType
Returns the enum constant of this class with the specified name.static PlotWindowType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HISTOGRAM
Histogram. -
PLANE
Plane. -
SKY
Sky. -
CUBE
Cube. -
SPHERE
Sphere. -
MATRIX
Matrix. -
TIME
Time.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getName
Returns plot type name.- Returns:
- one-word name
-
getIcon
Returns plot type icon.- Returns:
- icon
-
getDescription
Returns short description for plot type.- Returns:
- description phrase
-
createWindow
public abstract StackPlotWindow<?,?> createWindow(Component parent, ListModel<TopcatModel> tablesModel) Creates an instance of this plot type's window.- Parameters:
parent
- parent component, used for placementtablesModel
- list of available tables
-
toString
- Overrides:
toString
in classEnum<PlotWindowType>
-