class GXyRender extends Object implements XyRender
This is open source software released under the Apache 2.0 License
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
GXyRender.Type |
| Modifier and Type | Field and Description |
|---|---|
private boolean |
dashed |
private GXyPlot<? extends Comparable> |
plot |
private int |
pointSize |
private boolean |
shapes |
private boolean |
spline |
private boolean |
stacked |
private GXyRender.Type |
type |
| Constructor and Description |
|---|
GXyRender(GXyPlot<? extends Comparable> plot)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
(package private) GXyRender.Type |
getChartType()
Returns the chart type for this renderer
|
(package private) String |
getCurveType()
Returns the curve type for this render
|
(package private) int |
getPointSize()
Returns the points size for dot rendering
|
(package private) Color |
getSeriesColor(Comparable seriesKey)
Returns the series override color, or null if not set
|
(package private) Optional<Float> |
getSeriesLineWidth(Comparable seriesKey)
Returns the series override line width, or null if not set
This is only relevant for series rendered with lines
|
(package private) Optional<ChartShape> |
getSeriesPointShape(Comparable seriesKey)
Returns the series override shape, or null if not set
This is only relevant for series rendered with points
|
(package private) boolean |
hasShapesOrPoints()
Returns true if rendering includes points or shapes
|
(package private) boolean |
isArea()
Returns true if this renderer is for area
|
(package private) boolean |
isBars()
Returns true if this renderer is for bars
|
(package private) boolean |
isDots()
Returns true if dot rendering is set
|
(package private) boolean |
isLines()
Returns true if this renderer is for lines
|
(package private) boolean |
isScatter()
Returns true if rendering of scatter points or shapes
|
(package private) boolean |
isSeriesDashedLine(Comparable seriesKey)
Returns the series override to control whether line is dashed or not
|
(package private) boolean |
isSeriesPointsVisible(Comparable seriesKey)
Returns the series override point visibility, or null if not set
|
(package private) boolean |
isStacked()
Returns true for stacked bar rendering
|
void |
withArea(boolean stacked)
Configures the renderer to draw area either stacked or unstacked
|
void |
withBars(boolean stacked,
double margin)
Configures the renderer to draw bars either stacked or unstacked
|
void |
withDots()
Configures the renderer to draw dots in a scatter plot
|
void |
withDots(int diameter)
Configures the renderer to draw dots in a scatter plot
|
void |
withLines(boolean shapes,
boolean dashed)
Configures the renderer to draw lines with optional shapes and dashes
|
void |
withShapes()
Configures the renderer to draw shapes in a scatter plot
|
void |
withSpline(boolean shapes,
boolean dashed)
Configures the renderer to draw splines with optional shapes and dashes
|
private int pointSize
private boolean stacked
private boolean spline
private boolean dashed
private boolean shapes
private GXyRender.Type type
private GXyPlot<? extends Comparable> plot
GXyRender(GXyPlot<? extends Comparable> plot)
plot - the plot this renderer is bound toGXyRender.Type getChartType()
String getCurveType()
boolean isStacked()
boolean isBars()
boolean isLines()
boolean isArea()
boolean hasShapesOrPoints()
boolean isScatter()
boolean isDots()
int getPointSize()
public void withDots()
XyRenderpublic void withDots(int diameter)
XyRenderpublic void withArea(boolean stacked)
XyRenderpublic void withBars(boolean stacked,
double margin)
XyRenderpublic void withLines(boolean shapes,
boolean dashed)
XyRenderpublic void withShapes()
XyRenderwithShapes in interface XyRenderpublic void withSpline(boolean shapes,
boolean dashed)
XyRenderwithSpline in interface XyRendershapes - if true, include shapes at each datumdashed - if true, make the line dashedColor getSeriesColor(Comparable seriesKey)
seriesKey - the series keyOptional<Float> getSeriesLineWidth(Comparable seriesKey)
seriesKey - the series keyboolean isSeriesPointsVisible(Comparable seriesKey)
seriesKey - the series keyboolean isSeriesDashedLine(Comparable seriesKey)
seriesKey - the series keyOptional<ChartShape> getSeriesPointShape(Comparable seriesKey)
seriesKey - the series keyCopyright 2014-2017, Xavier Witdouck