|
||||||||||
| 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
public class ModeDragScroll
A Mode that allows the user to scroll the Editor by clicking and dragging with the middle mouse button.
Mode,
Editor,
Serialized Form| Field 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 ModecanExit in class ModeImplModeManagerpublic java.lang.String instructions()
instructions in interface FigModifyingModeinstructions in class FigModifyingModeImplpublic void mousePressed(java.awt.event.MouseEvent me)
mousePressed in interface java.awt.event.MouseListenermousePressed in class ModeImplme - public void mouseDragged(java.awt.event.MouseEvent me)
mouseDragged in interface java.awt.event.MouseMotionListenermouseDragged in class ModeImplme - public void mouseReleased(java.awt.event.MouseEvent me)
mouseReleased in interface java.awt.event.MouseListenermouseReleased in class ModeImplme - public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenere -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||