Package com.iizix.prop.ui.chart.plot2d
Enum PlotStroke
- java.lang.Object
- java.lang.Enum<PlotStroke>
- com.iizix.prop.ui.chart.plot2d.PlotStroke
- All Implemented Interfaces:
IPropCnrStroke
,java.io.Serializable
,java.lang.Comparable<PlotStroke>
public enum PlotStroke extends java.lang.Enum<PlotStroke> implements IPropCnrStroke
The Plot2D stroke settings for axis and various ticks the can be set or retrieved for the axis.- Author:
- Christopher Mindus
Enum Constant Summary
Enum Constants Enum Constant Description MAJOR_H_LINE
Grid stroke for a major horizontal line.MAJOR_V_LINE
Grid stroke for a major vertical line.MARKER_OUTLINE
Stroke for outline to use for any markers on the plot.MARKER_SHADOW
Stroke for shadow to use for any markers on the plot.MARKER_STROKE
Stroke to use for any markers on the plot.MINOR_H_LINE
Grid stroke for a minor horizontal line.MINOR_V_LINE
Grid stroke for a minor vertical line.OUTLINE
Stroke used to outline any series on the plot.SHADOW
Stroke to use to draw any shadows for a series on a plot.STROKE
Stroke to use for any series on the plot.
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GStroke
getDefaultValue()
Gets the default value when the property is not set.java.lang.String
getPropName()
Returns the name of the property, usually starting with '$'.static PlotStroke
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PlotStroke[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
Enum Constant Detail
STROKE
public static final PlotStroke STROKE
Stroke to use for any series on the plot.
OUTLINE
public static final PlotStroke OUTLINE
Stroke used to outline any series on the plot.
SHADOW
public static final PlotStroke SHADOW
Stroke to use to draw any shadows for a series on a plot.
MARKER_STROKE
public static final PlotStroke MARKER_STROKE
Stroke to use for any markers on the plot.
MARKER_OUTLINE
public static final PlotStroke MARKER_OUTLINE
Stroke for outline to use for any markers on the plot.
MARKER_SHADOW
public static final PlotStroke MARKER_SHADOW
Stroke for shadow to use for any markers on the plot.
MAJOR_H_LINE
public static final PlotStroke MAJOR_H_LINE
Grid stroke for a major horizontal line.By default major lines use major tick stroke.
MINOR_H_LINE
public static final PlotStroke MINOR_H_LINE
Grid stroke for a minor horizontal line.By default minor lines use minor tick stroke.
MAJOR_V_LINE
public static final PlotStroke MAJOR_V_LINE
Grid stroke for a major vertical line.By default major lines use major tick stroke.
MINOR_V_LINE
public static final PlotStroke MINOR_V_LINE
Grid stroke for a minor vertical line.By default minor lines use minor tick stroke.
Method Detail
values
public static PlotStroke[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PlotStroke c : PlotStroke.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
valueOf
public static PlotStroke valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
getDefaultValue
public GStroke getDefaultValue()
Gets the default value when the property is not set.- Specified by:
getDefaultValue
in interfaceIPropCnrStroke
getPropName
public java.lang.String getPropName()
Returns the name of the property, usually starting with '$'.- Specified by:
getPropName
in interfaceIPropCnrStroke