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.XYItemRenderercreateRenderer(RenderOptions opt)doublegetBarMargin()doublegetGapThreshold()protected abstract java.awt.ColorgetSeriesColor(int s)protected abstract intgetSeriesCount()protected abstract java.lang.StringgetSeriesDashString(int s)protected abstract floatgetSeriesLineWeight(int s)protected abstract intgetSeriesShape(int s)intgetStyle()doublegetxOffset3D()doublegetyOffset3D()protected abstract booleanisSeriesBarLabelsVisible(int s)protected abstract booleanisSeriesFillShape(int s)static float[]parseDashPattern(java.lang.String pattern)voidsetBarMargin(double barMargin)voidsetGapThreshold(double gapThreshold)voidsetxOffset3D(double xOffset3D)voidsetyOffset3D(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)
-
-