|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tigris.gef.base.ModeImpl
org.tigris.gef.base.FigModifyingModeImpl
org.tigris.gef.base.ModeDragScroll
A Mode that allows the user to scroll the Editor by clicking and dragging with the middle mouse button.
Mode
,
Editor
,
Serialized FormField Summary |
Fields inherited from class org.tigris.gef.base.FigModifyingModeImpl |
editor |
Fields inherited from class org.tigris.gef.base.ModeImpl |
_args |
Constructor Summary | |
ModeDragScroll()
Construct a new ModeDragScroll instance. |
|
ModeDragScroll(Editor editor)
Construct a new ModeDragScroll with the given parent. |
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
Interface ActionListener: Simulate mouse dragging |
boolean |
canExit()
Always false since this mode can never be exited. |
java.lang.String |
instructions()
Instructions for the user. |
void |
mouseDragged(java.awt.event.MouseEvent me)
If mouse is outside the component, begins autoscrolling or speeds it up. |
void |
mousePressed(java.awt.event.MouseEvent me)
Grabs component to begin scrolling. |
void |
mouseReleased(java.awt.event.MouseEvent me)
Stops scrolling, clears all references |
Methods inherited from class org.tigris.gef.base.FigModifyingModeImpl |
done, getEditor, getInitialCursor, isFigEnclosedIn, paint, print, setCursor, setEditor |
Methods inherited from class org.tigris.gef.base.ModeImpl |
getArg, getArgs, init, keyPressed, keyReleased, keyTyped, leave, mouseClicked, mouseEntered, mouseExited, mouseMoved, setArg, setArgs, start |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.tigris.gef.base.Mode |
getArg, getArgs, init, setArg, setArgs, start |
Constructor Detail |
public ModeDragScroll(Editor editor)
editor
- The Editor this Mode will dragpublic ModeDragScroll()
Method Detail |
public boolean canExit()
canExit
in interface Mode
canExit
in class ModeImpl
ModeManager
public java.lang.String instructions()
instructions
in interface FigModifyingMode
instructions
in class FigModifyingModeImpl
public void mousePressed(java.awt.event.MouseEvent me)
mousePressed
in interface java.awt.event.MouseListener
mousePressed
in class ModeImpl
me
- public void mouseDragged(java.awt.event.MouseEvent me)
mouseDragged
in interface java.awt.event.MouseMotionListener
mouseDragged
in class ModeImpl
me
- public void mouseReleased(java.awt.event.MouseEvent me)
mouseReleased
in interface java.awt.event.MouseListener
mouseReleased
in class ModeImpl
me
- public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
e
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |