Package com.storedobject.chart
Class DataZoom
java.lang.Object
com.storedobject.chart.AbstractPart
com.storedobject.chart.AbstractDataZoom
com.storedobject.chart.DataZoom
- All Implemented Interfaces:
Component,ComponentPart,ComponentProperty,HasPosition,VisibleProperty
Represents the "data zoom" component. Data zoom components allow the end-users
to zoom in and to zoom out charts using mouse and/or touch devices. This component ignores
the "width" and the "height" properties that are set via its
Position.- Author:
- Syam
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classUsed to style the data shadow.static classUsed to style the handle. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidEncode the JSON string with the properties of this.final AbstractColorGet the background color.final AbstractColorGet the border color.getDataShadowStyle(boolean create) Get the style of the data shadow.final AbstractColorGet the filler color.final DataZoom.HandleStylegetHandleStyle(boolean create) Get the handle style.final PositiongetPosition(boolean create) Get the position of this on the chart display area.booleanChecks if this property is currently visible.voidsetBackground(AbstractColor background) Set the background color.voidsetBorderColor(AbstractColor borderColor) Set the border color.voidsetDataShadowStyle(DataZoom.DataShadowStyle dataShadowStyle) Set the style of the data shadow.voidsetFillerColor(AbstractColor fillerColor) Set the filler color to fill the selected area.voidsetHandleStyle(DataZoom.HandleStyle handleStyle) Set the handle style.final voidsetPosition(Position position) Set the position of this.voidsetVisible(boolean visible) Sets the visibility of this property.Methods inherited from class com.storedobject.chart.AbstractDataZoom
addAxis, getEnd, getEndValue, getFilterMode, getMaxSpan, getMaxSpanValue, getMinSpan, getMinSpanValue, getStart, getStartValue, isZoomLock, setEnd, setEndValue, setEndValue, setEndValue, setFilterMode, setMaxSpan, setMaxSpanValue, setMaxSpanValue, setMaxSpanValue, setMinSpan, setMinSpanValue, setMinSpanValue, setMinSpanValue, setShowDetail, setStart, setStartValue, setStartValue, setStartValue, setZoomLock, validateMethods inherited from class com.storedobject.chart.AbstractPart
equals, getId, getLabelTag, getName, getSerial, getZ, hashCode, hasId, setSerial, setZMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.storedobject.chart.ComponentPart
className, getId, getName, getRenderingIndex, getSerial, setName, setRenderingIndex, setSerialMethods inherited from interface com.storedobject.chart.VisibleProperty
hide, show
-
Constructor Details
-
DataZoom
Constructor.- Parameters:
coordinateSystem- Coordinate system.axis- Axis list.
-
-
Method Details
-
encodeJSON
Description copied from interface:ComponentPropertyEncode the JSON string with the properties of this.- Specified by:
encodeJSONin interfaceComponentProperty- Overrides:
encodeJSONin classAbstractDataZoom- Parameters:
sb- Encoded JSON string to be appended to this.
-
setVisible
public void setVisible(boolean visible) Description copied from interface:VisiblePropertySets the visibility of this property.- Specified by:
setVisiblein interfaceVisibleProperty- Parameters:
visible- A boolean indicating whether this property should be visible (true) or hidden (false).
-
isVisible
public boolean isVisible()Description copied from interface:VisiblePropertyChecks if this property is currently visible.- Specified by:
isVisiblein interfaceVisibleProperty- Returns:
- true if the property is visible, false otherwise.
-
getPosition
Description copied from interface:HasPositionGet the position of this on the chart display area. (Iftrueis passed as the parameter, a new position will be created if not already exists).- Specified by:
getPositionin interfaceHasPosition- Parameters:
create- Whether to create it or not.- Returns:
- Position.
-
setPosition
Description copied from interface:HasPositionSet the position of this.- Specified by:
setPositionin interfaceHasPosition- Parameters:
position- Position to set.
-
getBackground
-
setBackground
Set the background color.- Parameters:
background- Background color.
-
getFillerColor
-
setFillerColor
Set the filler color to fill the selected area.- Parameters:
fillerColor- Filler color.
-
getBorderColor
-
setBorderColor
Set the border color.- Parameters:
borderColor- Border color.
-
getHandleStyle
Get the handle style.- Parameters:
create- Whether to create it or not.- Returns:
- Handle style.
-
setHandleStyle
Set the handle style.- Parameters:
handleStyle- Handle style.
-
getDataShadowStyle
Get the style of the data shadow.- Parameters:
create- Whether to create it or not.- Returns:
- Data shadow style.
-
setDataShadowStyle
Set the style of the data shadow.- Parameters:
dataShadowStyle- Data shadow style.
-