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 SummaryFields Modifier and Type Field Description static ModeDEFAULT_MODEDefault mode directions,Mode.XY.static ModeDEFAULT_OVER_SCALE_MODEDefault mode directions, when over the scale,Mode.XY.static ModeDEFAULT_SCALE_MODEDefault mode directions for the scale,Mode.XY.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletedCallbackgetCompletedCallback()Returns the callback called once zooming or panning is completed.ModegetMode()Returns the element (panning or zooming) directions.ModeCallbackgetModeCallback()Returns the element (panning or zooming) directions callback, to set the mode at runtime.ModegetOverScaleMode()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.ModegetScaleMode()Returns panning over a scale for that axis (regardless of mode).ModeCallbackgetScaleModeCallback()Returns the element directions callback, to enable panning over a scale for that axis (regardless of mode).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(ModeCallback modeCallback)Sets the element (panning or zooming) directions callback, to set the mode at runtime.voidsetMode(Mode mode)Sets the element (panning or zooming) directions.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(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 scalevoidsetOverScaleMode(Mode 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.voidsetProgressCallback(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.voidsetScaleMode(NativeCallback modeCallback)Sets the element directions callback, to enable panning over a scale for that axis (regardless of mode).voidsetScaleMode(ModeCallback modeCallback)Sets the element directions callback, to enable panning over a scale for that axis (regardless of mode).voidsetScaleMode(Mode mode)Enables panning over a scale for that axis (regardless of mode).voidsetStartCallback(StartCallback startCallback)Sets the callback called once zooming or panning is started.- 
Methods inherited from class org.pepstock.charba.client.commons.AbstractNodecheckAndAddToParent, getChildKey, getParentNode, getRootNode, getUpdateListener, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setElementAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, setUpdateListener, setValueAndAddToParent, setValueAndAddToParent, 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.NativeObjectContainercheckAndGetColor, 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, 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, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
 
- 
 
- 
- 
- 
Method Detail- 
setModepublic final void setMode(Mode mode) Sets the element (panning or zooming) directions.- Parameters:
- mode- the element (panning or zooming) directions
 
 - 
getModepublic final Mode getMode() Returns the element (panning or zooming) directions.- Returns:
- the element (panning or zooming) directions
 
 - 
setScaleModepublic final void setScaleMode(Mode mode) Enables panning over a scale for that axis (regardless of mode).- Parameters:
- mode- panning over a scale for that axis (regardless of mode).
 
 - 
getScaleModepublic final Mode getScaleMode() Returns panning over a scale for that axis (regardless of mode).- Returns:
- panning over a scale for that axis (regardless of mode).
 
 - 
setOverScaleModepublic final void setOverScaleMode(Mode 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
 
 - 
getOverScaleModepublic final Mode 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
 
 - 
getModeCallbackpublic 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
 
 - 
setModepublic 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
 
 - 
setModepublic 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
 
 - 
getScaleModeCallbackpublic final ModeCallback getScaleModeCallback() Returns the element directions callback, to enable panning over a scale for that axis (regardless of mode).- Returns:
- the element directions callback
 
 - 
setScaleModepublic final void setScaleMode(ModeCallback modeCallback) Sets the element directions callback, to enable panning over a scale for that axis (regardless of mode).- Parameters:
- modeCallback- the element directions callback
 
 - 
setScaleModepublic final void setScaleMode(NativeCallback modeCallback) Sets the element directions callback, to enable panning over a scale for that axis (regardless of mode).- Parameters:
- modeCallback- the element directions callback
 
 - 
getOverScaleModeCallbackpublic 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
 
 - 
setOverScaleModepublic 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
 
 - 
setOverScaleModepublic 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
 
 - 
getProgressCallbackpublic 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
 
 - 
setProgressCallbackpublic 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
 
 - 
getCompletedCallbackpublic final CompletedCallback getCompletedCallback() Returns the callback called once zooming or panning is completed.- Returns:
- the callback called once zooming or panning is completed
 
 - 
setCompletedCallbackpublic 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
 
 - 
getRejectedCallbackpublic final RejectedCallback getRejectedCallback() Returns the callback called once zooming or panning is completed.- Returns:
- the callback called once zooming or panning is completed
 
 - 
setRejectedCallbackpublic 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
 
 - 
getStartCallbackpublic final StartCallback getStartCallback() Returns the callback called once zooming or panning is started.- Returns:
- the callback called once zooming or panning is started
 
 - 
setStartCallbackpublic 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
 
 
- 
 
-