Package com.storedobject.chart
Class CoordinateSystemZoom
java.lang.Object
com.storedobject.chart.AbstractPart
com.storedobject.chart.AbstractDataZoom
com.storedobject.chart.CoordinateSystemZoom
- All Implemented Interfaces:
Component,ComponentPart,ComponentProperty
Represents "data zoom" component that works inside a coordinate system. Data zoom components allow the end-users
to zoom in and to zoom out charts using mouse and/or touch devices.
- Author:
- Syam
-
Constructor Summary
ConstructorsConstructorDescriptionCoordinateSystemZoom(CoordinateSystem coordinateSystem, Axis... axes) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoiddisable()Disable the zooming feature.voidenable()Enable the zooming feature.voidEncode the JSON string with the properties of this.voidmoveOnMouseMove(boolean moveOnMouseMove) Whether to trigger the data window move on mouse move or not.voidmoveOnMouseMove(Key key) Switch on the data window moving feature when the mouse is moved with a special key combination.voidmoveOnMouseWheel(boolean moveOnMouseWheel) Whether to trigger the data window move on mouse wheel or not.voidmoveOnMouseWheel(Key key) Switch on the data window moving feature when the mouse wheel is moved with a special key combination.voidzoomOnMouseWheel(boolean zoomOnMouseWheel) Whether to trigger the zoom on mouse wheel or not.voidzoomOnMouseWheel(Key key) Switch on the zooming feature when the mouse wheel is moved with a special key combination.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, setSerial
-
Constructor Details
-
CoordinateSystemZoom
Constructor.- Parameters:
coordinateSystem- Coordinate system.axes- 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.
-
enable
public void enable()Enable the zooming feature. -
disable
public void disable()Disable the zooming feature. -
zoomOnMouseWheel
public void zoomOnMouseWheel(boolean zoomOnMouseWheel) Whether to trigger the zoom on mouse wheel or not.- Parameters:
zoomOnMouseWheel- True or false.
-
zoomOnMouseWheel
Switch on the zooming feature when the mouse wheel is moved with a special key combination.- Parameters:
key- Special key to press while moving the mouse wheel.
-
moveOnMouseWheel
public void moveOnMouseWheel(boolean moveOnMouseWheel) Whether to trigger the data window move on mouse wheel or not.- Parameters:
moveOnMouseWheel- True or false.
-
moveOnMouseWheel
Switch on the data window moving feature when the mouse wheel is moved with a special key combination.- Parameters:
key- Special key to press while moving the mouse wheel.
-
moveOnMouseMove
public void moveOnMouseMove(boolean moveOnMouseMove) Whether to trigger the data window move on mouse move or not.- Parameters:
moveOnMouseMove- True or false.
-
moveOnMouseMove
Switch on the data window moving feature when the mouse is moved with a special key combination.- Parameters:
key- Special key to press while moving the mouse.
-