Package org.pepstock.charba.client.zoom
Class Pan
- 
 public final class Pan extends AbstractConfigurationItem Base object to map pan options forZoomPlugin.IDplugin configuration.
 It represents the container for PAN options.- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Field SummaryFields Modifier and Type Field Description static booleanDEFAULT_ENABLEDDefault enabled, false.static doubleDEFAULT_THRESHOLDDefault threshold, 10.0.- 
Fields inherited from class org.pepstock.charba.client.zoom.AbstractConfigurationItemDEFAULT_MODE, DEFAULT_OVER_SCALE_MODE
 
- 
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Default Methods Modifier and Type Method Description default CompletedCallbackgetCompletedCallback()Returns the callback called once zooming or panning is completed.default ModegetMode()Returns the element (panning or zooming) directions.default ModeCallbackgetModeCallback()Returns the element (panning or zooming) directions callback, to set the mode at runtime.ModifierKeygetModifierKey()Returns the modifier key to activate panning.default ModegetOverScaleMode()Returns which of the enabled zooming directions should only be available when the mouse cursor is over one of scale.default 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 scaledefault ProgressCallbackgetProgressCallback()Returns the callback called while the user is zooming or panning.default RejectedCallbackgetRejectedCallback()Returns the callback called once zooming or panning is rejected.default StartCallbackgetStartCallback()Returns the callback called once zooming or panning is started.doublegetThreshold()Returns the minimal pan distance required before actually applying pan.booleanisEnabled()Returnstrueto enable pan element.voidsetEnabled(boolean enabled)Setstrueto enable pan element.voidsetModifierKey(ModifierKey modifierKey)Sets the modifier key to activate panning.voidsetThreshold(double threshold)Sets the minimal pan distance required before actually applying pan.- 
Methods inherited from class org.pepstock.charba.client.zoom.AbstractConfigurationItemgetCompletedCallback, getMode, getModeCallback, getOverScaleMode, getOverScaleModeCallback, getProgressCallback, getRejectedCallback, getStartCallback, setCompletedCallback, setMode, setMode, setMode, setOverScaleMode, setOverScaleMode, setOverScaleMode, setProgressCallback, setRejectedCallback, setStartCallback
 - 
Methods inherited from class org.pepstock.charba.client.commons.AbstractNodecheckAndAddToParent, 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.NativeObjectContainercheckDefaultValuesArgument, 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_ENABLEDpublic static final boolean DEFAULT_ENABLED Default enabled, false.- See Also:
- Constant Field Values
 
 - 
DEFAULT_THRESHOLDpublic static final double DEFAULT_THRESHOLD Default threshold, 10.0.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
setEnabledpublic final void setEnabled(boolean enabled) Setstrueto enable pan element.- Parameters:
- enabled-- trueto enable pan element
 
 - 
isEnabledpublic final boolean isEnabled() Returnstrueto enable pan element.- Returns:
- trueto enable pan element
 
 - 
setModifierKeypublic void setModifierKey(ModifierKey modifierKey) Sets the modifier key to activate panning.- Parameters:
- modifierKey- the modifier key to activate panning
 
 - 
getModifierKeypublic ModifierKey getModifierKey() Returns the modifier key to activate panning.- Returns:
- the modifier key to activate panning
 
 - 
setThresholdpublic void setThreshold(double threshold) Sets the minimal pan distance required before actually applying pan.- Parameters:
- threshold- the minimal pan distance required before actually applying pan
 
 - 
getThresholdpublic double getThreshold() Returns the minimal pan distance required before actually applying pan.- Returns:
- the minimal pan distance required before actually applying pan
 
 - 
getModepublic default Mode getMode() Returns the element (panning or zooming) directions.- Returns:
- the element (panning or zooming) directions
 
 - 
getOverScaleModepublic default 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 default ModeCallback getModeCallback() Returns the element (panning or zooming) directions callback, to set the mode at runtime.- Returns:
- the element (panning or zooming) directions callback
 
 - 
getOverScaleModeCallbackpublic default 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
 
 - 
getProgressCallbackpublic default ProgressCallback getProgressCallback() Returns the callback called while the user is zooming or panning.- Returns:
- the callback called while the user is zooming or panning
 
 - 
getCompletedCallbackpublic default CompletedCallback getCompletedCallback() Returns the callback called once zooming or panning is completed.- Returns:
- the callback called once zooming or panning is completed
 
 - 
getRejectedCallbackpublic default RejectedCallback getRejectedCallback() Returns the callback called once zooming or panning is rejected.- Returns:
- the callback called once zooming or panning is rejected
 
 - 
getStartCallbackpublic default StartCallback getStartCallback() Returns the callback called once zooming or panning is started.- Returns:
- the callback called once zooming or panning is started
 
 
- 
 
-