public final class Pan extends AbstractConfigurationItem
ZoomPlugin.ID
plugin configuration.Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLED
Default enabled, false.
|
static double |
DEFAULT_THRESHOLD
Default threshold, 10.0.
|
DEFAULT_MODE, DEFAULT_OVER_SCALE_MODE
Modifier and Type | Method and Description |
---|---|
default CompletedCallback |
getCompletedCallback()
Returns the callback called once zooming or panning is completed.
|
default InteractionAxis |
getMode()
Returns the element (panning or zooming) directions.
|
default ModeCallback |
getModeCallback()
Returns the element (panning or zooming) directions callback, to set the mode at runtime.
|
ModifierKey |
getModifierKey()
Returns the modifier key to activate panning.
|
default InteractionAxis |
getOverScaleMode()
Returns which of the enabled zooming directions should only be available when the mouse cursor is over one of scale.
|
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
|
default ProgressCallback |
getProgressCallback()
Returns the callback called while the user is zooming or panning.
|
default RejectedCallback |
getRejectedCallback()
Returns the callback called once zooming or panning is rejected.
|
default StartCallback |
getStartCallback()
Returns the callback called once zooming or panning is started.
|
double |
getThreshold()
Returns the minimal pan distance required before actually applying pan.
|
boolean |
isEnabled()
Returns
true to enable pan element. |
void |
setEnabled(boolean enabled)
Sets
true to enable pan element. |
void |
setModifierKey(ModifierKey modifierKey)
Sets the modifier key to activate panning.
|
void |
setThreshold(double threshold)
Sets the minimal pan distance required before actually applying pan.
|
getCompletedCallback, getMode, getModeCallback, getOverScaleMode, getOverScaleModeCallback, getProgressCallback, getRejectedCallback, getStartCallback, setCompletedCallback, setMode, setMode, setMode, setOverScaleMode, setOverScaleMode, setOverScaleMode, setProgressCallback, setRejectedCallback, setStartCallback
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
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
public static final boolean DEFAULT_ENABLED
public static final double DEFAULT_THRESHOLD
public final void setEnabled(boolean enabled)
true
to enable pan element.enabled
- true
to enable pan elementpublic final boolean isEnabled()
true
to enable pan element.true
to enable pan elementpublic void setModifierKey(ModifierKey modifierKey)
modifierKey
- the modifier key to activate panningpublic ModifierKey getModifierKey()
public void setThreshold(double threshold)
threshold
- the minimal pan distance required before actually applying panpublic double getThreshold()
public InteractionAxis getMode()
public InteractionAxis getOverScaleMode()
public ModeCallback getModeCallback()
public ModeCallback getOverScaleModeCallback()
public ProgressCallback getProgressCallback()
public CompletedCallback getCompletedCallback()
public RejectedCallback getRejectedCallback()
public StartCallback getStartCallback()