class GXyAxis extends Object implements XyAxis
This is open source software released under the Apache 2.0 License
| Modifier and Type | Field and Description |
|---|---|
private GChartFormat |
format |
private GChartLabel |
label |
private boolean |
log |
private GChartTextStyle |
ticks |
| Constructor and Description |
|---|
GXyAxis(boolean domain)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(JsObject axis,
GXyDataset dataset)
Enriches the options of this axis on the JsObject provided.
|
XyAxis |
asDateScale()
Marks this axis as a linear date axis
|
XyAxis |
asLinearScale()
Marks this axis as a linear numeric axis
|
XyAxis |
asLogScale()
Marks this axis as a log scale axis
|
ChartFormat |
format()
Returns the format for this axis
|
ChartLabel |
label()
Returns the label for this axis
|
ChartTextStyle |
ticks()
Returns the style interface for this axis
|
XyAxis |
withRange(com.zavtech.morpheus.util.Bounds<?> range)
Sets the upper and lower bounds for the range of this axis
|
private GChartLabel label
private GChartFormat format
private GChartTextStyle ticks
private boolean log
GXyAxis(boolean domain)
domain - true if this represents a domain axispublic ChartLabel label()
XyAxispublic ChartFormat format()
XyAxispublic ChartTextStyle ticks()
XyAxispublic XyAxis asLogScale()
XyAxisasLogScale in interface XyAxispublic XyAxis asLinearScale()
XyAxisasLinearScale in interface XyAxispublic XyAxis asDateScale()
XyAxisasDateScale in interface XyAxispublic XyAxis withRange(com.zavtech.morpheus.util.Bounds<?> range)
XyAxispublic void accept(JsObject axis, GXyDataset dataset)
axis - the axis JsObject to accept configuration todataset - the dataset for the plotCopyright 2014-2017, Xavier Witdouck