|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GrappaListener
An interface for handling mouse-related activity that occurs on a graph.
Method Summary | |
---|---|
void |
grappaClicked(Subgraph subg,
Element elem,
GrappaPoint pt,
int modifiers,
int clickCount,
GrappaPanel panel)
The method called when a single mouse click occurs on a displayed subgraph. |
void |
grappaDragged(Subgraph subg,
GrappaPoint currentPt,
int currentModifiers,
Element pressedElem,
GrappaPoint pressedPt,
int pressedModifiers,
GrappaBox outline,
GrappaPanel panel)
The method called when a mouse drag occurs on a displayed subgraph. |
void |
grappaPressed(Subgraph subg,
Element elem,
GrappaPoint pt,
int modifiers,
GrappaPanel panel)
The method called when a mouse press occurs on a displayed subgraph. |
void |
grappaReleased(Subgraph subg,
Element elem,
GrappaPoint pt,
int modifiers,
Element pressedElem,
GrappaPoint pressedPt,
int pressedModifiers,
GrappaBox outline,
GrappaPanel panel)
The method called when a mouse release occurs on a displayed subgraph. |
java.lang.String |
grappaTip(Subgraph subg,
Element elem,
GrappaPoint pt,
int modifiers,
GrappaPanel panel)
The method called when a element tooltip is needed. |
Method Detail |
---|
void grappaClicked(Subgraph subg, Element elem, GrappaPoint pt, int modifiers, int clickCount, GrappaPanel panel)
subg
- displayed subgraph where action occurredelem
- subgraph element in which action occurredpt
- the point where the action occurred (graph coordinates)modifiers
- mouse modifiers in effectpanel
- specific panel where the action occurredvoid grappaPressed(Subgraph subg, Element elem, GrappaPoint pt, int modifiers, GrappaPanel panel)
subg
- displayed subgraph where action occurredelem
- subgraph element in which action occurredpt
- the point where the action occurred (graph coordinates)modifiers
- mouse modifiers in effectpanel
- specific panel where the action occurredvoid grappaReleased(Subgraph subg, Element elem, GrappaPoint pt, int modifiers, Element pressedElem, GrappaPoint pressedPt, int pressedModifiers, GrappaBox outline, GrappaPanel panel)
subg
- displayed subgraph where action occurredelem
- subgraph element in which action occurredpt
- the point where the action occurred (graph coordinates)modifiers
- mouse modifiers in effectpressedElem
- subgraph element in which the most recent mouse press occurredpressedPt
- the point where the most recent mouse press occurred (graph coordinates)pressedModifiers
- mouse modifiers in effect when the most recent mouse press occurredoutline
- enclosing box specification from the previous drag position (for XOR reset purposes)panel
- specific panel where the action occurredvoid grappaDragged(Subgraph subg, GrappaPoint currentPt, int currentModifiers, Element pressedElem, GrappaPoint pressedPt, int pressedModifiers, GrappaBox outline, GrappaPanel panel)
subg
- displayed subgraph where action occurredcurrentPt
- the current drag pointcurrentModifiers
- the current drag mouse modifierspressedElem
- subgraph element in which the most recent mouse press occurredpressedPt
- the point where the most recent mouse press occurred (graph coordinates)pressedModifiers
- mouse modifiers in effect when the most recent mouse press occurredoutline
- enclosing box specification from the previous drag position (for XOR reset purposes)panel
- specific panel where the action occurredjava.lang.String grappaTip(Subgraph subg, Element elem, GrappaPoint pt, int modifiers, GrappaPanel panel)
subg
- displayed subgraph where action occurredelem
- subgraph element in which action occurredpt
- the point where the action occurred (graph coordinates)modifiers
- mouse modifiers in effectpanel
- specific panel where the action occurred
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |