Package org.pepstock.charba.client.geo
Class ProjectionAxis
- java.lang.Object
- 
- org.pepstock.charba.client.configuration.Axis
- 
- org.pepstock.charba.client.geo.ProjectionAxis
 
 
- 
 public final class ProjectionAxis extends Axis A map projection is a way to flatten a globe's surface into a plane in order to make a map.
 This requires a systematic transformation of the latitudes and longitudes of locations from the surface of the globe into locations on a plane.
 This is the scale which is managing the map projection.- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Constructor SummaryConstructors Constructor Description ProjectionAxis(IsChart chart)Builds the object storing the chart instance.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description IsChartgetChart()Returns the chart instanceprotected TgetConfiguration()Returns the configuration element.PaddinggetPadding()Returns the padding applied during auto scaling of the map in pixels, i.e.ProjectiongetProjection()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.doublegetProjectionScale()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 fromorg.pepstock.charba.clientpackage.voidmerge(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 voidsetConfiguration(T configuration)voidsetProjection(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.voidsetProjectionOffset(double x, double y)Sets a map projection offset value.voidsetProjectionScale(double projectionScale)Sets how much the map will be scaled.StringtoJSON()Returns the JSON representation of the object.- 
Methods inherited from class org.pepstock.charba.client.configuration.AxisgetAlignToPixelsCallback, getAxis, getAxisBuildTicksCallback, getAxisCalculateLabelRotationCallback, getAxisDataLimitsCallback, getAxisDimensionsCallback, getAxisFitCallback, getAxisTickToLabelConversionCallback, getAxisUpdateCallback, getBackgroundColor, getBackgroundColorAsString, getBackgroundColorCallback, getCharbaId, getDisplay, getDisplayCallback, getId, getReverseCallback, getType, getWeight, getWeightCallback, isAlignToPixels, isReverse, setAlignToPixels, setAlignToPixels, setAlignToPixels, setAxisBuildTicksCallback, setAxisCalculateLabelRotationCallback, setAxisDataLimitsCallback, setAxisDimensionsCallback, setAxisFitCallback, setAxisTickToLabelConversionCallback, setAxisUpdateCallback, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setDisplay, setDisplay, setDisplay, setDisplay, setReverse, setReverse, setReverse, setWeight, setWeight, setWeight
 
- 
 
- 
- 
- 
Constructor Detail- 
ProjectionAxispublic ProjectionAxis(IsChart chart) Builds the object storing the chart instance.- Parameters:
- chart- chart instance
 
 
- 
 - 
Method Detail- 
getPaddingpublic Padding getPadding() Returns the padding applied during auto scaling of the map in pixels, i.e. the chart size is reduce by the padding before fitting the map.- Returns:
- the padding applied during auto scaling of the map in pixels
 
 - 
setProjectionpublic 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.- Parameters:
- projection- a map projection which is a way to flatten a globe's surface into a plane in order to make a map
 
 - 
getProjectionpublic 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.- Returns:
- a map projection which is a way to flatten a globe's surface into a plane in order to make a map
 
 - 
setProjectionScalepublic void setProjectionScale(double projectionScale) Sets how much the map will be scaled.- Parameters:
- projectionScale- how much the map will be scaled
 
 - 
getProjectionScalepublic double getProjectionScale() Returns how much the map will be scaled.- Returns:
- how much the map will be scaled
 
 - 
setProjectionOffsetpublic void setProjectionOffset(double x, double y)Sets a map projection offset value.- Parameters:
- x- x offset where the map has been placed
- y- y offset where the map has been placed
 
 - 
getProjectionOffsetpublic List<Double> getProjectionOffset() Returns a map projection offset value.- Returns:
- a map projection offset value.
 
 - 
setConfigurationprotected final void setConfiguration(T configuration) - Parameters:
- configuration- the configuration to set
 
 - 
getConfigurationprotected final T getConfiguration() Returns the configuration element.- Returns:
- the configuration element.
 
 - 
mergepublic final 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.- Parameters:
- source- native object container to add
- property- property name
 
 - 
toJSONpublic final String toJSON() Returns the JSON representation of the object.- Returns:
- the JSON representation of the object.
 
 - 
loadNativeObjectpublic final ChartEnvelop<NativeObject> loadNativeObject(ChartEnvelop<NativeObject> envelop) Returns the native object instance inside an envelop.
 It can be called only fromorg.pepstock.charba.clientpackage.- Parameters:
- envelop- envelop instance which will contain the native object
- Returns:
- the envelop, passed as argument, loaded with the native object
 
 - 
getChartpublic final IsChart getChart() Returns the chart instance- Returns:
- the chart
 
 
- 
 
-