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, setMouseFilter
public static final String PZ
public PanZoomInterpreter(PanZoomController c) throws Exception
Exception
protected final void appendStroke(LayerEvent e)
protected void removeCurrentFigure()
protected final void startStroke()
protected final void finishStroke()
public boolean isMotionEnabled()
isMotionEnabled
in interface Interactor
isMotionEnabled
in class AbstractInteractor
public void mouseDragged(LayerEvent e)
mouseDragged
in interface LayerListener
mouseDragged
in class AbstractInteractor
public void mousePressed(LayerEvent e)
mousePressed
in interface LayerListener
mousePressed
in class AbstractInteractor
public void mouseReleased(LayerEvent e)
mouseReleased
in interface LayerListener
mouseReleased
in class AbstractInteractor
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.