Package org.pepstock.charba.client.geo
Class GeoFeatureElement
- java.lang.Object
-
- org.pepstock.charba.client.commons.NativeObjectContainer
-
- org.pepstock.charba.client.commons.AbstractNode
-
- org.pepstock.charba.client.commons.AbstractReadOnlyPoint
-
- org.pepstock.charba.client.items.ChartElement
-
- org.pepstock.charba.client.geo.GeoFeatureElement
-
- All Implemented Interfaces:
IsPoint
public final class GeoFeatureElement extends ChartElement
Calling some methods on your chart instance passing an argument of an event, will return the elements at the event position.
The geoFeature elements are mapped by this object.- Author:
- Andrea "Stock" Stocchero
-
-
Field Summary
Fields Modifier and Type Field Description static ChartElementFactory
FACTORY
Static instance for the GEOFEATURE element factorystatic String
TYPE
GEOFEATURE element type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataPointCenter
getCenter()
Returns the center of GEO feature element.Feature
getFeature()
Returns the feature of GEO element.GeoFeatureElementOptions
getOptions()
Returns the element options.double
getPixelRatio()
Returns the pixel ratio used by GEO feature element.-
Methods inherited from class org.pepstock.charba.client.items.ChartElement
getCenterPoint, getCenterPoint, getFinalPositionProps, getFinalPositionProps, getType, isActive, isSkipped, isStop, toString
-
Methods inherited from class org.pepstock.charba.client.commons.AbstractReadOnlyPoint
getX, getY
-
Methods inherited from class org.pepstock.charba.client.commons.AbstractNode
checkAndAddToParent, getChildKey, getParentNode, getRootNode, getUpdateListener, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setElementAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, setUpdateListener, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent
-
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainer
checkAndGetColor, checkDefaultValuesArgument, empty, getArrayValue, getElement, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setElement, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.pepstock.charba.client.commons.IsPoint
isConsistent
-
-
-
-
Field Detail
-
TYPE
public static final String TYPE
GEOFEATURE element type.- See Also:
- Constant Field Values
-
FACTORY
public static final ChartElementFactory FACTORY
Static instance for the GEOFEATURE element factory
-
-
Method Detail
-
getOptions
public GeoFeatureElementOptions getOptions()
Returns the element options.- Overrides:
getOptions
in classChartElement
- Returns:
- the element options.
-
getCenter
public DataPointCenter getCenter()
Returns the center of GEO feature element.- Returns:
- the center of GEO feature element.
-
getFeature
public Feature getFeature()
Returns the feature of GEO element.- Returns:
- the feature of GEO element.
-
getPixelRatio
public double getPixelRatio()
Returns the pixel ratio used by GEO feature element.- Returns:
- the pixel ratio used by GEO feature element.
-
-