public final class SpacePanBehaviour extends Object
PanTool
in a configured
PageView
. Space panning has become famous of some well known image
manipulation programs. The use can press hand hold the space key and switches into the panning
mode. Once the the space key is released panning will be stopped and the previous Tool
will become active again.Constructor and Description |
---|
SpacePanBehaviour() |
Modifier and Type | Method and Description |
---|---|
ToolActivationPolicy |
getDecoratedToolActivationPolicy() |
void |
install(PageView pageView)
Install the
SpacePanBehaviour into the given PageView . |
void |
setDecoratedToolActivationPolicy(ToolActivationPolicy decoratedToolActivationPolicy) |
void |
uninstall()
|
public void setDecoratedToolActivationPolicy(ToolActivationPolicy decoratedToolActivationPolicy)
public ToolActivationPolicy getDecoratedToolActivationPolicy()
public void install(PageView pageView)
SpacePanBehaviour
into the given PageView
. A
SpacePanBehaviour
must not be shared accross multiple PageView
instances and
will throw a IllegalStateException
if someone tries to do so.pageView
- the PageView
IllegalStateException
- if install has been called before and the instance is already
registered.IllegalArgumentException
- if the PageView
is null
public void uninstall()
IllegalStateException
- if the SpacePanBehaviour
has not been
installed
beforeCopyright © 2024 levigo holding gmbh. All rights reserved.