Class AbstractDataZoom
- All Implemented Interfaces:
Component,ComponentPart,ComponentProperty
- Direct Known Subclasses:
CoordinateSystemZoom,DataZoom
- Author:
- Syam
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdd list of axes.voidEncode the JSON string with the properties of this.final intgetEnd()The end percentage of the window out of the data extent, in the range of 0 ~ 100.final ObjectThe absolute end value of the window.final intGet the filter mode.final intThe maximum span percentage value of the window out of the data extent, in the range of 0 ~ 100.final ObjectThe absolute maximum span value of the window.final intThe minimum span percentage value of the window out of the data extent, in the range of 0 ~ 100.final ObjectThe absolute minimum span value of the window.final intgetStart()The start percentage of the window out of the data extent, in the range of 0 ~ 100.final ObjectThe absolute start value of the window.final booleanCheck whether zoom lock is set or not.voidsetEnd(int end) The end percentage of the window out of the data extent, in the range of 0 ~ 100.voidsetEndValue(Number endValue) The absolute end value of the window.voidsetEndValue(LocalDate endValue) The absolute end value of the window.voidsetEndValue(LocalDateTime endValue) The absolute end value of the window.voidsetFilterMode(int filterMode) Set the filter mode.voidsetMaxSpan(int maxSpan) The maximum span percentage value of the window out of the data extent, in the range of 0 ~ 100.voidsetMaxSpanValue(Number maxSpanValue) The absolute maximum span value of the window.voidsetMaxSpanValue(LocalDate maxSpanValue) The absolute maximum span value of the window.voidsetMaxSpanValue(LocalDateTime maxSpanValue) The absolute maximum span value of the window.voidsetMinSpan(int minSpan) The minimum span percentage value of the window out of the data extent, in the range of 0 ~ 100.voidsetMinSpanValue(Number minSpanValue) The absolute minimum span value of the window.voidsetMinSpanValue(LocalDate minSpanValue) The absolute minimum span value of the window.voidsetMinSpanValue(LocalDateTime minSpanValue) The absolute minimum span value of the window.voidsetShowDetail(boolean showDetail) Show details when dragging.voidsetStart(int start) The start percentage of the window out of the data extent, in the range of 0 ~ 100.voidsetStartValue(Number startValue) The absolute start value of the window.voidsetStartValue(LocalDate startValue) The absolute start value of the window.voidsetStartValue(LocalDateTime startValue) The absolute start value of the window.voidsetZoomLock(boolean zoomLock) Set the zoom lock.voidvalidate()This method is invoked bySOChartto check if the component or part is valid or not.Methods 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
-
Method Details
-
addAxis
-
validate
Description copied from interface:ComponentPartThis method is invoked bySOChartto check if the component or part is valid or not.- Specified by:
validatein interfaceComponentPart- Throws:
ChartException- Raises exception if the component or part is not valid.
-
encodeJSON
Description copied from interface:ComponentPropertyEncode the JSON string with the properties of this.- Specified by:
encodeJSONin interfaceComponentProperty- Overrides:
encodeJSONin classAbstractPart- Parameters:
sb- Encoded JSON string to be appended to this.
-
setShowDetail
public void setShowDetail(boolean showDetail) Show details when dragging.- Parameters:
showDetail- True/false.
-
getFilterMode
public final int getFilterMode()Get the filter mode. (SeesetFilterMode(int)).- Returns:
- Get the current filter mode.
-
setFilterMode
public void setFilterMode(int filterMode) Set the filter mode.
0: Do not filter data.
1: Data that outside the window will be set to NaN, which will not lead to changes of the window of other axes.
2: Data that outside the window will be filtered, which may lead to some changes of windows of other axes. For each data item, it will be filtered only if all of the relevant dimensions are out of the same side of the window.
3: Data that outside the window will be filtered, which may lead to some changes of windows of other axes. For each data item, it will be filtered if one of the relevant dimensions is out of the window. This is the default value.
Note: Setting other values will be ignored.
- Parameters:
filterMode- Filter mode.
-
getStart
public final int getStart()The start percentage of the window out of the data extent, in the range of 0 ~ 100.- Returns:
- Start percentage.
-
setStart
public void setStart(int start) The start percentage of the window out of the data extent, in the range of 0 ~ 100. (Value set by setStartValue(...) methods will not be effective if this method is invoked).- Parameters:
start- Start percentage.
-
getEnd
public final int getEnd()The end percentage of the window out of the data extent, in the range of 0 ~ 100.- Returns:
- End percentage.
-
setEnd
public void setEnd(int end) The end percentage of the window out of the data extent, in the range of 0 ~ 100.- Parameters:
end- End percentage.
-
getStartValue
-
setStartValue
The absolute start value of the window. (Value set bysetStart(int)will not be effective if this method is invoked).- Parameters:
startValue- Start value. (Can be index value for category data).
-
setStartValue
The absolute start value of the window. (Value set bysetStart(int)will not be effective if this method is invoked).- Parameters:
startValue- Start value. (Used forDataType.DATE).
-
setStartValue
The absolute start value of the window. (Value set bysetStart(int)will not be effective if this method is invoked).- Parameters:
startValue- Start value. (Used forDataType.TIME).
-
getEndValue
-
setEndValue
The absolute end value of the window. (Value set bysetEnd(int)will not be effective if this method is invoked).- Parameters:
endValue- End value. (Can be index value for category data).
-
setEndValue
The absolute end value of the window. (Value set bysetEnd(int)will not be effective if this method is invoked).- Parameters:
endValue- End value. (Used forDataType.DATE).
-
setEndValue
The absolute end value of the window. (Value set bysetEnd(int)will not be effective if this method is invoked).- Parameters:
endValue- End value. (Used forDataType.TIME).
-
getMinSpan
public final int getMinSpan()The minimum span percentage value of the window out of the data extent, in the range of 0 ~ 100.- Returns:
- Minimum span percentage value.
-
setMinSpan
public void setMinSpan(int minSpan) The minimum span percentage value of the window out of the data extent, in the range of 0 ~ 100. (Value set by setMinSpanValue(...) methods will not be effective if this method is invoked).- Parameters:
minSpan- Minimum span percentage value.
-
getMaxSpan
public final int getMaxSpan()The maximum span percentage value of the window out of the data extent, in the range of 0 ~ 100.- Returns:
- MaxSpan Maximum span percentage value.
-
setMaxSpan
public void setMaxSpan(int maxSpan) The maximum span percentage value of the window out of the data extent, in the range of 0 ~ 100.- Parameters:
maxSpan- Maximum span percentage value.
-
getMinSpanValue
The absolute minimum span value of the window.- Returns:
- Minimum span value.
-
setMinSpanValue
The absolute minimum span value of the window. (Value set bysetMinSpan(int)will not be effective if this method is invoked).- Parameters:
minSpanValue- Minimum span value.
-
setMinSpanValue
The absolute minimum span value of the window. (Value set bysetMinSpan(int)will not be effective if this method is invoked).- Parameters:
minSpanValue- Minimum span value. (Used forDataType.DATE).
-
setMinSpanValue
The absolute minimum span value of the window. (Value set bysetMinSpan(int)will not be effective if this method is invoked).- Parameters:
minSpanValue- Minimum span value. (Used forDataType.TIME).
-
getMaxSpanValue
The absolute maximum span value of the window.- Returns:
- Maximum span value.
-
setMaxSpanValue
The absolute maximum span value of the window. (Value set bysetMaxSpan(int)will not be effective if this method is invoked).- Parameters:
maxSpanValue- Maximum span value.
-
setMaxSpanValue
The absolute maximum span value of the window. (Value set bysetMaxSpan(int)will not be effective if this method is invoked).- Parameters:
maxSpanValue- Maximum span value. (Used forDataType.DATE).
-
setMaxSpanValue
The absolute maximum span value of the window. (Value set bysetMaxSpan(int)will not be effective if this method is invoked).- Parameters:
maxSpanValue- Maximum span value. (Used forDataType.TIME).
-
isZoomLock
public final boolean isZoomLock()Check whether zoom lock is set or not. (SeesetZoomLock(boolean)for details).- Returns:
- True or false.
-
setZoomLock
public void setZoomLock(boolean zoomLock) Set the zoom lock.
When set as true, the size of window is locked, that is, only the translation (by mouse drag or touch drag) is available.
- Parameters:
zoomLock- True or false.
-