public class PanZoomInterpreter extends AbstractInteractor
| Modifier and Type | Class and Description |
|---|---|
class |
PanZoomInterpreter.LocalRecognizer |
| Constructor and Description |
|---|
PanZoomInterpreter(PanZoomController c) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendStroke(LayerEvent e)
Append the given new point/timestamp to the current
stroke.
|
protected void |
finishStroke()
Called upon mouse released event.
|
boolean |
isMotionEnabled()
We're not handling motion events.
|
void |
mouseDragged(LayerEvent e)
Update the current stroke and its visual representation.
|
void |
mousePressed(LayerEvent e)
Instantiate a new stroke and add its visual representation
as a symbol in the pane.
|
void |
mouseReleased(LayerEvent e)
Update the current stroke and its visual representation,
and interpret the stroke using either the command recognizer
or the UML recognizer.
|
protected void |
removeCurrentFigure()
Utility function.
|
protected void |
startStroke()
This method is invoked upon mouse down.
|
accept, getMouseFilter, isConsuming, isEnabled, mouseClicked, mouseEntered, mouseExited, mouseMoved, setConsuming, setEnabled, setMotionEnabled, setMouseFilterpublic static final String PZ
public PanZoomInterpreter(PanZoomController c) throws Exception
Exceptionprotected final void appendStroke(LayerEvent e)
protected void removeCurrentFigure()
protected final void startStroke()
protected final void finishStroke()
public boolean isMotionEnabled()
isMotionEnabled in interface InteractorisMotionEnabled in class AbstractInteractorpublic void mouseDragged(LayerEvent e)
mouseDragged in interface LayerListenermouseDragged in class AbstractInteractorpublic void mousePressed(LayerEvent e)
mousePressed in interface LayerListenermousePressed in class AbstractInteractorpublic void mouseReleased(LayerEvent e)
mouseReleased in interface LayerListenermouseReleased in class AbstractInteractorCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.