Class Elements
- java.lang.Object
-
- org.pepstock.charba.client.configuration.Elements
-
- Direct Known Subclasses:
BubbleMapElements
,ChoroplethElements
public class Elements extends Object
Options can be configured for four different types of elements: arc, lines, points, and bars.
When set, these options apply to the configuration attached to a dataset.- Author:
- Andrea "Stock" Stocchero
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Elements(ConfigurationOptions options)
Builds the object storing the default root options.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Arc
getArc()
Returns the arc element.Bar
getBar()
Returns the bar element.IsChart
getChart()
Returns the chart instanceprotected ExtendedOptions
getConfiguration()
Returns the configuration element.<T extends NativeObjectContainer>
TgetElement(ElementFactory<T> factory)
Returns the options defined for a custom element.Line
getLine()
Returns the line element.protected ConfigurationOptions
getOptions()
Returns the configuration options.Point
getPoint()
Returns the point element.
-
-
-
Constructor Detail
-
Elements
protected Elements(ConfigurationOptions options)
Builds the object storing the default root options.- Parameters:
options
- default root options.
-
-
Method Detail
-
getPoint
public Point getPoint()
Returns the point element.- Returns:
- the point element
-
getLine
public Line getLine()
Returns the line element.- Returns:
- the line element
-
getArc
public Arc getArc()
Returns the arc element.- Returns:
- the arc element
-
getBar
public Bar getBar()
Returns the bar element.- Returns:
- the bar
-
getElement
public <T extends NativeObjectContainer> T getElement(ElementFactory<T> factory)
Returns the options defined for a custom element.- Type Parameters:
T
- type of the options- Parameters:
factory
- factory instance to create the element- Returns:
- the options instance defined for a custom element.
-
getOptions
protected final ConfigurationOptions getOptions()
Returns the configuration options.- Returns:
- the configuration options.
-
getConfiguration
protected final ExtendedOptions getConfiguration()
Returns the configuration element.- Returns:
- the configuration element.
-
getChart
public final IsChart getChart()
Returns the chart instance- Returns:
- the chart
-
-