|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--uci.gef.Mode
|
+--uci.gef.ModeDragScroll
A Mode that allows the user to scroll the Editor by clicking and dragging with the middle mouse button.
Mode,
Editor, Serialized Form| Fields inherited from class uci.gef.Mode |
_args,
_editor |
| Constructor Summary | |
ModeDragScroll()
Construct a new ModeDragScroll instance. |
|
ModeDragScroll(Editor par)
Construct a new ModeDragScroll with the given parent. |
|
| Method Summary | |
void |
actionPerformed(ActionEvent e)
Called by the autoTimer to scroll once during autoscrolling. |
boolean |
canExit()
Always false since this mode can never be exited. |
String |
instructions()
Instructions for the user. |
void |
mouseDragged(MouseEvent me)
If mouse is outside the component, begins autoscrolling or speeds it up. |
void |
mouseEntered(MouseEvent me)
If mouse re-enters component, stops autoscrolling. |
void |
mousePressed(MouseEvent me)
Grabs component to begin scrolling. |
void |
mouseReleased(MouseEvent me)
Stops autoscrolling. |
| Methods inherited from class uci.gef.Mode |
done,
getArg,
getArgs,
getEditor,
getInitialCursor,
keyPressed,
keyReleased,
keyTyped,
mouseClicked,
mouseExited,
mouseMoved,
paint,
print,
setArg,
setArgs,
setCursor,
setEditor,
start |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public ModeDragScroll(Editor par)
par - The Editor this Mode will dragpublic ModeDragScroll()
| Method Detail |
public boolean canExit()
public String instructions()
public void mousePressed(MouseEvent me)
me - public void mouseDragged(MouseEvent me)
me - public void mouseReleased(MouseEvent me)
me - public void mouseEntered(MouseEvent me)
me - public void actionPerformed(ActionEvent e)
e -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||