Class RenderOptions
- java.lang.Object
-
- com.inductiveautomation.ignition.common.gui.chart.RenderOptions
-
- All Implemented Interfaces:
ChartConstants
- Direct Known Subclasses:
AbstractXYChart.RenderOptsImpl
public abstract class RenderOptions extends java.lang.Object implements ChartConstants
RenderOptions is an abstract class that represents the options needed to create a renderer for a collection of "pens" or series that share the same basic render style but have different series specific options such as color. Most importantly, there is also a static function that will take a RenderOptions instance and create a properly configured XYItemRenderer.
-
-
Field Summary
-
Fields inherited from interface com.inductiveautomation.ignition.common.gui.chart.ChartConstants
SHAPE_LIST, STYLE_3D_LINE, STYLE_AREA, STYLE_BAR, STYLE_BAR_NO_SHADOW, STYLE_DOT, STYLE_LINE, STYLE_LINE_AND_SHAPE, STYLE_LINE_DISCONTINUOUS, STYLE_SHAPE, STYLE_STEP, STYLE_STEP_AREA
-
-
Constructor Summary
Constructors Constructor Description RenderOptions(int style)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static org.jfree.chart.renderer.xy.XYItemRenderer
createRenderer(RenderOptions opt)
double
getBarMargin()
double
getGapThreshold()
protected abstract java.awt.Color
getSeriesColor(int s)
protected abstract int
getSeriesCount()
protected abstract java.lang.String
getSeriesDashString(int s)
protected abstract float
getSeriesLineWeight(int s)
protected abstract int
getSeriesShape(int s)
int
getStyle()
double
getxOffset3D()
double
getyOffset3D()
protected abstract boolean
isSeriesBarLabelsVisible(int s)
protected abstract boolean
isSeriesFillShape(int s)
static float[]
parseDashPattern(java.lang.String pattern)
void
setBarMargin(double barMargin)
void
setGapThreshold(double gapThreshold)
void
setxOffset3D(double xOffset3D)
void
setyOffset3D(double yOffset3D)
-
-
-
Method Detail
-
createRenderer
public static org.jfree.chart.renderer.xy.XYItemRenderer createRenderer(RenderOptions opt)
-
parseDashPattern
public static float[] parseDashPattern(java.lang.String pattern) throws java.lang.NumberFormatException
- Throws:
java.lang.NumberFormatException
-
getSeriesCount
protected abstract int getSeriesCount()
-
getSeriesColor
protected abstract java.awt.Color getSeriesColor(int s)
-
getSeriesDashString
protected abstract java.lang.String getSeriesDashString(int s)
-
getSeriesLineWeight
protected abstract float getSeriesLineWeight(int s)
-
getSeriesShape
protected abstract int getSeriesShape(int s)
-
isSeriesBarLabelsVisible
protected abstract boolean isSeriesBarLabelsVisible(int s)
-
isSeriesFillShape
protected abstract boolean isSeriesFillShape(int s)
-
getStyle
public int getStyle()
-
getGapThreshold
public double getGapThreshold()
-
setGapThreshold
public void setGapThreshold(double gapThreshold)
-
getxOffset3D
public double getxOffset3D()
-
setxOffset3D
public void setxOffset3D(double xOffset3D)
-
getyOffset3D
public double getyOffset3D()
-
setyOffset3D
public void setyOffset3D(double yOffset3D)
-
getBarMargin
public double getBarMargin()
-
setBarMargin
public void setBarMargin(double barMargin)
-
-