|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.canvas.interactor.AbstractInteractor
diva.sketch.toolbox.PanZoomInterpreter
public class PanZoomInterpreter
Nested Class Summary | |
---|---|
class |
PanZoomInterpreter.LocalRecognizer
|
Field Summary | |
---|---|
static String |
PZ
|
Constructor Summary | |
---|---|
PanZoomInterpreter(PanZoomController c)
|
Method Summary | |
---|---|
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. |
Methods inherited from class diva.canvas.interactor.AbstractInteractor |
---|
accept, getMouseFilter, isConsuming, isEnabled, mouseClicked, mouseEntered, mouseExited, mouseMoved, setConsuming, setEnabled, setMotionEnabled, setMouseFilter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PZ
Constructor Detail |
---|
public PanZoomInterpreter(PanZoomController c) throws Exception
Exception
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |