class GXyPlot<X extends Comparable> extends XyPlotBase<X>
This is open source software released under the Apache 2.0 License
| Modifier and Type | Class and Description |
|---|---|
private class |
GXyPlot.GXyOrient
An adapter implementation for the ChartOrientation interface
|
| Modifier and Type | Field and Description |
|---|---|
private GXyAxes |
axes |
private GXyModel<X,Comparable> |
model |
private GXyPlot.GXyOrient |
orient |
private Map<Integer,GXyRender> |
renderMap |
private ChartShape.Provider |
shapeProvider |
private Map<Comparable,GTrendLine> |
trendLineMap |
| Constructor and Description |
|---|
GXyPlot()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(JsObject options)
Enriches the JsObject with options for these axes
|
private void |
applyShape(JsObject object,
ChartShape shape)
Applies a point shape style to the series entry
|
XyAxes |
axes()
Returns the plot axes control interface
|
private void |
axisOptions(JsObject options)
Enriches the options with axis configuration
|
<S extends Comparable> |
data()
Returns the plot data control interface
|
(package private) ChartShape.Provider |
getShapeProvider()
Returns the shape provider for this plot
|
private boolean |
isHorizontal()
Returns true if the orientation is set to horizontal
|
(package private) boolean |
isVertical()
Returns true if the orientation is set to vertical
|
XyOrient |
orient()
Returns the interface to set the chart orientation
|
XyRender |
render(int index)
Returns the chart plot style interface for the dataset index
|
private GXyRender |
renderAt(int index)
Returns the render with a more specific type
|
private void |
seriesOptions(JsObject options)
Enriches the options with series configuration
|
<S extends Comparable> |
trend(S seriesKey)
Returns the trend line controller interface for the series specified
|
private void |
trendLineOptions(JsObject options)
Enriches the options with trend line configuration
|
getColorModel, getSeriesColor, getSeriesLineWidth, getSeriesPointShape, isSeriesDashedLine, isSeriesPointsVisible, style, withColorModelprivate GXyAxes axes
private GXyPlot.GXyOrient orient
private GXyModel<X extends Comparable,Comparable> model
private Map<Comparable,GTrendLine> trendLineMap
private ChartShape.Provider shapeProvider
public XyAxes axes()
XyPlotpublic <S extends Comparable> XyModel<X,S> data()
XyPlotpublic XyOrient orient()
XyPlotpublic <S extends Comparable> XyTrend trend(S seriesKey)
XyPlotseriesKey - the series key to create trend line forpublic XyRender render(int index)
XyPlotindex - the dataset index, 0 being the first datasetprivate GXyRender renderAt(int index)
index - the dataset indexpublic void accept(JsObject options)
options - the options to enrichprivate void axisOptions(JsObject options)
options - the Javascript options objectprivate void seriesOptions(JsObject options)
options - the Javascript options objectprivate void trendLineOptions(JsObject options)
options - the Javascript optionsprivate void applyShape(JsObject object, ChartShape shape)
object - the series objectshape - the chart shapeprivate boolean isHorizontal()
ChartShape.Provider getShapeProvider()
boolean isVertical()
Copyright 2014-2017, Xavier Witdouck