Package com.iizix.prop.ui.chart.plot2d
Enum Class PlotType
- All Implemented Interfaces:
IPropCnrChoiceOption<IPlotChoiceOption>,IPlotChoiceOption,Serializable,Comparable<PlotType>,Constable
The Plot2D type of the chart.
- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionArea.Horizontal bars.Bubbles.Plot that represents typical candlesticks (financial reporting, primarily).Grouped or clustered bars (horizontal bars).Grouped or clustered columns (vertical bars).Column chart (vertical bars).Default uninitialized chart.A "faux" plot that can be placed behind other plots to represent a grid against which other plots can be easily measured.A "faux" plot that can be placed behind or above other plots to represent a line or multi-line threshold on the chart.Typical line chart.Line chart with markers.Markers only.Typical open/high/low/close (financial reporting, primarily).Pie chart.Scatter chart.Spider chart.Like the default plot, stacked sets up lines, areas and markers in a stacked fashion (values on the y axis added to each other) as opposed to a direct one.Stacked areas.Stacked bar chart (horizontal bars).Stacked column chart (vertical bars).Stacked line chart.Method Summary
Modifier and TypeMethodDescriptionPlotType[]Gets all the choices possible, including default.Gets the default value.intgetInt()Returns the choice as an integer value.Gets the property name.Gets the possible series type for the plot type.static PlotTypeReturns the enum constant of this class with the specified name.static PlotType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
AREAS
Area.BARS
Horizontal bars.BUBBLES
Bubbles. Note that data for Bubbles requires 3 parameters, in the form of: { x, y, size }, where size determines the size of the bubble.CANDLESTICKS
Plot that represents typical candlesticks (financial reporting, primarily). Unlike most charts, the Candlestick expects data points to be represented by an object of the form { x?, open, close, high, low, mid? }, where both x and mid are optional parameters. If x is not provided, the index of the data array is used.CLUSTERED_BARS
Grouped or clustered bars (horizontal bars).CLUSTERED_COLUMNS
Grouped or clustered columns (vertical bars).COLUMNS
Column chart (vertical bars).DEFAULT
Default uninitialized chart.GRID
A "faux" plot that can be placed behind other plots to represent a grid against which other plots can be easily measured.INDICATOR
A "faux" plot that can be placed behind or above other plots to represent a line or multi-line threshold on the chart.LINES
Typical line chart. (A convenience constructor to create a typical line chart). ??MARKERS
Line chart with markers. (A convenience plot to draw a line chart with markers). ??MARKERS_ONLY
Markers only. [A convenience object to draw only markers (like a scatter but not quite)].OHLC
Typical open/high/low/close (financial reporting, primarily). Unlike most charts, the Candlestick expects data points to be represented by an object of the form { x?, open, close, high, low, mid? }, where both x and mid are optional parameters. If x is not provided, the index of the data array is used.PIE
Pie chart.SCATTER
Scatter chart.SPIDER
Spider chart.STACKED
Like the default plot, stacked sets up lines, areas and markers in a stacked fashion (values on the y axis added to each other) as opposed to a direct one.STACKED_AREAS
Stacked areas. (A convenience object to set up a stacked area plot).STACKED_BARS
Stacked bar chart (horizontal bars).STACKED_COLUMNS
Stacked column chart (vertical bars).STACKED_LINES
Stacked line chart.
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
getDefault
Gets the default value. This value is used to initialize the property.- Specified by:
getDefaultin interfaceIPropCnrChoiceOption<IPlotChoiceOption>- Returns:
AREAS.
enumValues
Gets all the choices possible, including default.- Specified by:
enumValuesin interfaceIPropCnrChoiceOption<IPlotChoiceOption>
getInt
public int getInt()Returns the choice as an integer value.- Specified by:
getIntin interfaceIPropCnrChoiceOption<IPlotChoiceOption>
getPropName
Gets the property name.- Specified by:
getPropNamein interfaceIPropCnrChoiceOption<IPlotChoiceOption>
getSeriesTypes
Gets the possible series type for the plot type.- Returns:
- An array of series types.