Package org.pepstock.charba.client.geo
Class GeoFeatureElementOptions
- java.lang.Object
-
- org.pepstock.charba.client.commons.NativeObjectContainer
-
- org.pepstock.charba.client.commons.AbstractNode
-
- org.pepstock.charba.client.items.ChartElementOptions
-
- org.pepstock.charba.client.items.CommonElementOptions
-
- org.pepstock.charba.client.items.BarElementOptions
-
- org.pepstock.charba.client.geo.GeoFeatureElementOptions
-
public final class GeoFeatureElementOptions extends BarElementOptions
The styling of the new elementGeoFeatureElementOptions
is based onBar
element with some additional options for the outline and graticule.- Author:
- Andrea "Stock" Stocchero
-
-
Field Summary
Fields Modifier and Type Field Description static ElementFactory<GeoFeatureElementOptions>
FACTORY
Element factory to get ""geoFeature"" element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
getDefaultBorderWidth()
This method must be overrided by all element where the border width is stored in different object.IsColor
getGraticuleBorderColor()
Returns the graticule border color.String
getGraticuleBorderColorAsString()
Returns the graticule border color.int
getGraticuleBorderWidth()
Returns the graticule border width.IsColor
getOutlineBackgroundColor()
Returns the outline background color.String
getOutlineBackgroundColorAsString()
Returns the outline background color.IsColor
getOutlineBorderColor()
Returns the outline border color.String
getOutlineBorderColorAsString()
Returns the outline border color.int
getOutlineBorderWidth()
Returns the outline border width.void
setBorderWidth(BarBorderWidth borderWidth)
It doesn't do anything because you can set the border width only by a number.void
setGraticuleBorderColor(String borderColor)
Sets the graticule border color.void
setGraticuleBorderColor(IsColor borderColor)
Sets the graticule border color.void
setGraticuleBorderWidth(int borderWidth)
Sets the graticule border width.void
setOutlineBackgroundColor(String backgroundColor)
Sets the outline background color.void
setOutlineBackgroundColor(IsColor backgroundColor)
Sets the outline background color.void
setOutlineBorderColor(String borderColor)
Sets the outline border color.void
setOutlineBorderColor(IsColor borderColor)
Sets the outline border color.void
setOutlineBorderWidth(int borderWidth)
Sets the outline border width.-
Methods inherited from class org.pepstock.charba.client.items.BarElementOptions
getBarBorderRadius, getBarPercentage, getBase, getBorderRadius, getBorderSkipped, getBorderWidth, getBorderWidthAsObject, getCategoryPercentage, getInflateAmount, isAutoInflateAmount, isBorderRadiusAsObject, isBorderWidthAsObject, setAutoInflateAmount, setBarPercentage, setBase, setBorderRadius, setBorderRadius, setBorderSkipped, setBorderSkipped, setCategoryPercentage, setInflateAmount
-
Methods inherited from class org.pepstock.charba.client.items.CommonElementOptions
createTooltipLabelColor, getBackgroundColor, getBackgroundColorAsCanvasGradient, getBackgroundColorAsCanvasPattern, getBackgroundColorAsGradient, getBackgroundColorAsPattern, getBackgroundColorAsString, getBorderColor, getBorderColorAsCanvasGradient, getBorderColorAsGradient, getBorderColorAsString, inRange, inXRange, inYRange, isBackgroundColorAsColor, isBackgroundColorAsGradient, isBackgroundColorAsPattern, isBorderColorAsColor, isBorderColorAsGradient, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBorderColor, setBorderColor, setBorderColor, setBorderWidth
-
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
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
-
-
-
-
Field Detail
-
FACTORY
public static final ElementFactory<GeoFeatureElementOptions> FACTORY
Element factory to get ""geoFeature"" element.
-
-
Method Detail
-
getDefaultBorderWidth
protected int getDefaultBorderWidth()
Description copied from class:CommonElementOptions
This method must be overrided by all element where the border width is stored in different object.- Overrides:
getDefaultBorderWidth
in classBarElementOptions
- Returns:
- an undefined integer
-
setBorderWidth
public void setBorderWidth(BarBorderWidth borderWidth)
It doesn't do anything because you can set the border width only by a number.- Overrides:
setBorderWidth
in classBarElementOptions
- Parameters:
borderWidth
- the border width.
-
setOutlineBackgroundColor
public void setOutlineBackgroundColor(IsColor backgroundColor)
Sets the outline background color.- Parameters:
backgroundColor
- the outline background color.
-
setOutlineBackgroundColor
public void setOutlineBackgroundColor(String backgroundColor)
Sets the outline background color.- Parameters:
backgroundColor
- the outline background color.
-
getOutlineBackgroundColorAsString
public String getOutlineBackgroundColorAsString()
Returns the outline background color.- Returns:
- the outline background color.
-
getOutlineBackgroundColor
public IsColor getOutlineBackgroundColor()
Returns the outline background color.- Returns:
- the outline background color.
-
setOutlineBorderWidth
public void setOutlineBorderWidth(int borderWidth)
Sets the outline border width.- Parameters:
borderWidth
- the outline border width.
-
getOutlineBorderWidth
public int getOutlineBorderWidth()
Returns the outline border width.- Returns:
- the outline border width.
-
setOutlineBorderColor
public void setOutlineBorderColor(IsColor borderColor)
Sets the outline border color.- Parameters:
borderColor
- the outline border color.
-
setOutlineBorderColor
public void setOutlineBorderColor(String borderColor)
Sets the outline border color.- Parameters:
borderColor
- the outline border color.
-
getOutlineBorderColorAsString
public String getOutlineBorderColorAsString()
Returns the outline border color.- Returns:
- the outline border color.
-
getOutlineBorderColor
public IsColor getOutlineBorderColor()
Returns the outline border color.- Returns:
- the outline border color.
-
setGraticuleBorderWidth
public void setGraticuleBorderWidth(int borderWidth)
Sets the graticule border width.- Parameters:
borderWidth
- the graticule border width.
-
getGraticuleBorderWidth
public int getGraticuleBorderWidth()
Returns the graticule border width.- Returns:
- the graticule border width.
-
setGraticuleBorderColor
public void setGraticuleBorderColor(String borderColor)
Sets the graticule border color.- Parameters:
borderColor
- the graticule border color.
-
setGraticuleBorderColor
public void setGraticuleBorderColor(IsColor borderColor)
Sets the graticule border color.- Parameters:
borderColor
- the graticule border color.
-
getGraticuleBorderColorAsString
public String getGraticuleBorderColorAsString()
Returns the graticule border color.- Returns:
- the graticule border color.
-
getGraticuleBorderColor
public IsColor getGraticuleBorderColor()
Returns the graticule border color.- Returns:
- the graticule border color.
-
-