public final class ProjectionAxis extends Axis
Modifier and Type | Field and Description |
---|---|
static ScaleId |
ID
Projection axis id.
|
static AxisType |
TYPE
Projection axis type.
|
Constructor and Description |
---|
ProjectionAxis(IsChart chart)
Builds the object storing the chart instance.
|
Modifier and Type | Method and Description |
---|---|
IsChart |
getChart()
Returns the chart instance
|
protected T |
getConfiguration()
Returns the configuration element.
|
Projection |
getProjection()
Returns a map projection which is a way to flatten a globe's surface into a plane in order to make a map.
|
List<Double> |
getProjectionOffset()
Returns a map projection offset value.
|
double |
getProjectionScale()
Returns how much the map will be scaled.
|
ChartEnvelop<NativeObject> |
loadNativeObject(ChartEnvelop<NativeObject> envelop)
Returns the native object instance inside an envelop.
It can be called only from org.pepstock.charba.client package. |
void |
merge(NativeObjectContainer source,
String property)
Merge a native object in the this one with a specific property name.
This is used by plugins implementation (native java script ones) when they are not using the standard way to add plugin configuration in the options of chart. |
protected void |
setConfiguration(T configuration) |
void |
setProjection(Projection projection)
Sets a map projection which is a way to flatten a globe's surface into a plane in order to make a map.
|
void |
setProjectionOffset(double x,
double y)
Sets a map projection offset value.
|
void |
setProjectionScale(double projectionScale)
Sets how much the map will be scaled.
|
String |
toJSON()
Returns the JSON representation of the object.
|
getAxis, getAxisBuildTicksCallback, getAxisCalculateLabelRotationCallback, getAxisDataLimitsCallback, getAxisDimensionsCallback, getAxisFitCallback, getAxisTickToLabelConversionCallback, getAxisUpdateCallback, getBackgroundColor, getBackgroundColorAsString, getCharbaId, getDisplay, getId, getType, getWeight, isAlignToPixels, isReverse, setAlignToPixels, setAxisBuildTicksCallback, setAxisCalculateLabelRotationCallback, setAxisDataLimitsCallback, setAxisDimensionsCallback, setAxisFitCallback, setAxisTickToLabelConversionCallback, setAxisUpdateCallback, setBackgroundColor, setBackgroundColor, setDisplay, setDisplay, setReverse, setWeight
public static final ScaleId ID
public static final AxisType TYPE
public ProjectionAxis(IsChart chart)
chart
- chart instancepublic void setProjection(Projection projection)
projection
- a map projection which is a way to flatten a globe's surface into a plane in order to make a mappublic Projection getProjection()
public void setProjectionScale(double projectionScale)
projectionScale
- how much the map will be scaledpublic double getProjectionScale()
public void setProjectionOffset(double x, double y)
x
- x offset where the map has been placedy
- y offset where the map has been placedpublic List<Double> getProjectionOffset()
protected final void setConfiguration(T configuration)
configuration
- the configuration to setprotected final T getConfiguration()
public final void merge(NativeObjectContainer source, String property)
source
- native object container to addproperty
- property namepublic final String toJSON()
public final ChartEnvelop<NativeObject> loadNativeObject(ChartEnvelop<NativeObject> envelop)
org.pepstock.charba.client
package.envelop
- envelop instance which will contain the native objectpublic final IsChart getChart()