Package org.pepstock.charba.client.zoom
Class AbstractConfigurationItem
- java.lang.Object
-
- org.pepstock.charba.client.commons.NativeObjectContainer
-
- org.pepstock.charba.client.commons.AbstractNode
-
- org.pepstock.charba.client.zoom.AbstractConfigurationItem
-
public abstract class AbstractConfigurationItem extends AbstractNode
Abstract element used by pan and zoom object in order to enable to provide the configuration ofZoomPlugin.ID.- Author:
- Andrea "Stock" Stocchero
-
-
Field Summary
Fields Modifier and Type Field Description static InteractionAxisDEFAULT_MODEDefault mode directions,InteractionAxis.XY.static InteractionAxisDEFAULT_OVER_SCALE_MODEDefault mode directions, when over the scale,InteractionAxis.XY.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletedCallbackgetCompletedCallback()Returns the callback called once zooming or panning is completed.InteractionAxisgetMode()Returns the element (panning or zooming) directions.ModeCallbackgetModeCallback()Returns the element (panning or zooming) directions callback, to set the mode at runtime.InteractionAxisgetOverScaleMode()Returns which of the enabled zooming directions should only be available when the mouse cursor is over one of scale.ModeCallbackgetOverScaleModeCallback()Returns the element (panning or zooming) directions callback, to set the mode at runtime, which of the enabled zooming directions should only be available when the mouse cursor is over one of scaleProgressCallbackgetProgressCallback()Returns the callback called while the user is zooming or panning.RejectedCallbackgetRejectedCallback()Returns the callback called once zooming or panning is completed.StartCallbackgetStartCallback()Returns the callback called once zooming or panning is started.voidsetCompletedCallback(CompletedCallback completeCallback)Sets the callback called once zooming or panning is completed.voidsetMode(NativeCallback modeCallback)Sets the element (panning or zooming) directions callback, to set the mode at runtime.voidsetMode(InteractionAxis mode)Sets the element (panning or zooming) directions.voidsetMode(ModeCallback modeCallback)Sets the element (panning or zooming) directions callback, to set the mode at runtime.voidsetOverScaleMode(NativeCallback modeCallback)Sets the element (panning or zooming) directions callback, to set the mode at runtime, which of the enabled zooming directions should only be available when the mouse cursor is over one of scalevoidsetOverScaleMode(InteractionAxis mode)Sets which of the enabled zooming directions should only be available when the mouse cursor is over one of scale.
If under mouse hasn't scale, then return all other scales which 'mode' is different with overScaleMode.
So 'overScaleMode' works as a limiter to scale the user-selected scale (in 'mode') only when the cursor is under the scale, and other directions in 'mode' works as before.voidsetOverScaleMode(ModeCallback modeCallback)Sets the element (panning or zooming) directions callback, to set the mode at runtime, which of the enabled zooming directions should only be available when the mouse cursor is over one of scalevoidsetProgressCallback(ProgressCallback progressCallback)Sets the callback called while the user is zooming or panning.voidsetRejectedCallback(RejectedCallback rejectCallback)Sets the callback called once zooming or panning is rejected.voidsetStartCallback(StartCallback startCallback)Sets the callback called once zooming or panning is started.-
Methods inherited from class org.pepstock.charba.client.commons.AbstractNode
checkAndAddToParent, getChildKey, getParentNode, getRootNode, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setElementAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, 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, 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, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
-
-
-
-
Field Detail
-
DEFAULT_MODE
public static final InteractionAxis DEFAULT_MODE
Default mode directions,InteractionAxis.XY.
-
DEFAULT_OVER_SCALE_MODE
public static final InteractionAxis DEFAULT_OVER_SCALE_MODE
Default mode directions, when over the scale,InteractionAxis.XY.
-
-
Method Detail
-
setMode
public final void setMode(InteractionAxis mode)
Sets the element (panning or zooming) directions.- Parameters:
mode- the element (panning or zooming) directions
-
getMode
public final InteractionAxis getMode()
Returns the element (panning or zooming) directions.- Returns:
- the element (panning or zooming) directions
-
setOverScaleMode
public final void setOverScaleMode(InteractionAxis mode)
Sets which of the enabled zooming directions should only be available when the mouse cursor is over one of scale.
If under mouse hasn't scale, then return all other scales which 'mode' is different with overScaleMode.
So 'overScaleMode' works as a limiter to scale the user-selected scale (in 'mode') only when the cursor is under the scale, and other directions in 'mode' works as before.- Parameters:
mode- which of the enabled zooming directions should only be available when the mouse cursor is over one of scale
-
getOverScaleMode
public final InteractionAxis getOverScaleMode()
Returns which of the enabled zooming directions should only be available when the mouse cursor is over one of scale.- Returns:
- which of the enabled zooming directions should only be available when the mouse cursor is over one of scale
-
getModeCallback
public final ModeCallback getModeCallback()
Returns the element (panning or zooming) directions callback, to set the mode at runtime.- Returns:
- the element (panning or zooming) directions callback
-
setMode
public final void setMode(ModeCallback modeCallback)
Sets the element (panning or zooming) directions callback, to set the mode at runtime.- Parameters:
modeCallback- the element (panning or zooming) directions callback
-
setMode
public final void setMode(NativeCallback modeCallback)
Sets the element (panning or zooming) directions callback, to set the mode at runtime.- Parameters:
modeCallback- the element (panning or zooming) directions callback
-
getOverScaleModeCallback
public final ModeCallback getOverScaleModeCallback()
Returns the element (panning or zooming) directions callback, to set the mode at runtime, which of the enabled zooming directions should only be available when the mouse cursor is over one of scale- Returns:
- the element (panning or zooming) directions callback
-
setOverScaleMode
public final void setOverScaleMode(ModeCallback modeCallback)
Sets the element (panning or zooming) directions callback, to set the mode at runtime, which of the enabled zooming directions should only be available when the mouse cursor is over one of scale- Parameters:
modeCallback- the element (panning or zooming) directions callback
-
setOverScaleMode
public final void setOverScaleMode(NativeCallback modeCallback)
Sets the element (panning or zooming) directions callback, to set the mode at runtime, which of the enabled zooming directions should only be available when the mouse cursor is over one of scale- Parameters:
modeCallback- the element (panning or zooming) directions callback
-
getProgressCallback
public final ProgressCallback getProgressCallback()
Returns the callback called while the user is zooming or panning.- Returns:
- the callback called while the user is zooming or panning
-
setProgressCallback
public final void setProgressCallback(ProgressCallback progressCallback)
Sets the callback called while the user is zooming or panning.- Parameters:
progressCallback- the callback called while the user is zooming or panning
-
getCompletedCallback
public final CompletedCallback getCompletedCallback()
Returns the callback called once zooming or panning is completed.- Returns:
- the callback called once zooming or panning is completed
-
setCompletedCallback
public final void setCompletedCallback(CompletedCallback completeCallback)
Sets the callback called once zooming or panning is completed.- Parameters:
completeCallback- the callback called once zooming or panning is completed
-
getRejectedCallback
public final RejectedCallback getRejectedCallback()
Returns the callback called once zooming or panning is completed.- Returns:
- the callback called once zooming or panning is completed
-
setRejectedCallback
public final void setRejectedCallback(RejectedCallback rejectCallback)
Sets the callback called once zooming or panning is rejected.- Parameters:
rejectCallback- the callback called once zooming or panning is rejected
-
getStartCallback
public final StartCallback getStartCallback()
Returns the callback called once zooming or panning is started.- Returns:
- the callback called once zooming or panning is started
-
setStartCallback
public final void setStartCallback(StartCallback startCallback)
Sets the callback called once zooming or panning is started.- Parameters:
startCallback- the callback called once zooming or panning is started
-
-