|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.inria.zvtm.event.ViewAdapter
fr.inria.zvtm.event.ScrollingListener
public class ScrollingListener
| Field Summary |
|---|
| Fields inherited from interface fr.inria.zvtm.event.ViewListener |
|---|
ALT_MOD, ALT_SHIFT_MOD, CTRL_MOD, CTRL_SHIFT_MOD, META_MOD, META_SHIFT_MOD, NO_MODIFIER, SHIFT_MOD, WHEEL_DOWN, WHEEL_UP |
| Constructor Summary | |
|---|---|
ScrollingListener(ScrollLayer sl,
int scrollLayerIndex,
int controlledLayerIndex)
|
|
| Method Summary | |
|---|---|
void |
click1(ViewPanel v,
int mod,
int jpx,
int jpy,
int clickNumber,
MouseEvent e)
Left mouse button clicked callback. |
void |
enterGlyph(Glyph g)
Cursor entered glyph callback. |
void |
exitGlyph(Glyph g)
Cursor exited glyph callback. |
void |
mouseDragged(ViewPanel v,
int mod,
int buttonNumber,
int jpx,
int jpy,
MouseEvent e)
Mouse dragged callback. |
void |
mouseMoved(ViewPanel v,
int jpx,
int jpy,
MouseEvent e)
Mouse moved callback. |
void |
press1(ViewPanel v,
int mod,
int jpx,
int jpy,
MouseEvent e)
Left mouse button pressed callback. |
void |
release1(ViewPanel v,
int mod,
int jpx,
int jpy,
MouseEvent e)
Left mouse button released callback. |
| Methods inherited from class fr.inria.zvtm.event.ViewAdapter |
|---|
click2, click3, Kpress, Krelease, Ktype, mouseWheelMoved, press2, press3, release2, release3, viewActivated, viewClosing, viewDeactivated, viewDeiconified, viewIconified |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScrollingListener(ScrollLayer sl,
int scrollLayerIndex,
int controlledLayerIndex)
sl - the ScrollLayer object that manages the scroll bar layer associated with this event handlerscrollLayerIndex - index of scroll layer in the viewcontrolledLayerIndex - index of of controlled layer in the view (layer containing camera controlled by the scroll bars)| Method Detail |
|---|
public void press1(ViewPanel v,
int mod,
int jpx,
int jpy,
MouseEvent e)
ViewListener
press1 in interface ViewListenerpress1 in class ViewAdapterv - ViewPanel/JPanel embedded in View, on which glyphs are drawn.mod - key modifiers depressed when event occured. One of NO_MODIFIER, SHIFT_MOD, CTRL_MOD, CTRL_SHIFT_MOD, META_MOD, META_SHIFT_MOD, ALT_MOD, ALT_SHIFT_MOD.jpx - x-coordinate of cursor in JPanel coordinates when event occured.jpy - y-coordinate of cursor in JPanel coordinates when event occured.e - reference to original AWT mouse event.
public void release1(ViewPanel v,
int mod,
int jpx,
int jpy,
MouseEvent e)
ViewListener
release1 in interface ViewListenerrelease1 in class ViewAdapterv - ViewPanel/JPanel embedded in View, on which glyphs are drawn.mod - key modifiers depressed when event occured. One of NO_MODIFIER, SHIFT_MOD, CTRL_MOD, CTRL_SHIFT_MOD, META_MOD, META_SHIFT_MOD, ALT_MOD, ALT_SHIFT_MOD.jpx - x-coordinate of cursor in JPanel coordinates when event occured.jpy - y-coordinate of cursor in JPanel coordinates when event occured.e - reference to original AWT mouse event.
public void click1(ViewPanel v,
int mod,
int jpx,
int jpy,
int clickNumber,
MouseEvent e)
ViewListener
click1 in interface ViewListenerclick1 in class ViewAdapterv - ViewPanel/JPanel embedded in View, on which glyphs are drawn.mod - key modifiers depressed when event occured. One of NO_MODIFIER, SHIFT_MOD, CTRL_MOD, CTRL_SHIFT_MOD, META_MOD, META_SHIFT_MOD, ALT_MOD, ALT_SHIFT_MOD.jpx - x-coordinate of cursor in JPanel coordinates when event occured.jpy - y-coordinate of cursor in JPanel coordinates when event occured.e - reference to original AWT mouse event.
public void mouseMoved(ViewPanel v,
int jpx,
int jpy,
MouseEvent e)
ViewListener
mouseMoved in interface ViewListenermouseMoved in class ViewAdapterv - ViewPanel/JPanel embedded in View, on which glyphs are drawn.jpx - x-coordinate of cursor in JPanel coordinates when event occured.jpy - y-coordinate of cursor in JPanel coordinates when event occured.e - reference to original AWT mouse event.View.setNotifyCursorMoved(boolean b)
public void mouseDragged(ViewPanel v,
int mod,
int buttonNumber,
int jpx,
int jpy,
MouseEvent e)
ViewListener
mouseDragged in interface ViewListenermouseDragged in class ViewAdapterv - ViewPanel/JPanel embedded in View, on which glyphs are drawn.mod - key modifiers depressed when event occured. One of NO_MODIFIER, SHIFT_MOD, CTRL_MOD, CTRL_SHIFT_MOD, META_MOD, META_SHIFT_MOD, ALT_MOD, ALT_SHIFT_MOD.buttonNumber - one of 1 (left), 2 (middle) or 3 (right)jpx - x-coordinate of cursor in JPanel coordinates when event occured.jpy - y-coordinate of cursor in JPanel coordinates when event occured.e - reference to original AWT mouse event.public void enterGlyph(Glyph g)
ViewListener
enterGlyph in interface ViewListenerenterGlyph in class ViewAdapterg - Glyph instance the cursor just enteredpublic void exitGlyph(Glyph g)
ViewListener
exitGlyph in interface ViewListenerexitGlyph in class ViewAdapterg - Glyph instance the cursor just exited
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||