|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectatt.grappa.GrappaAdapter
public class GrappaAdapter
A convenience class that implements the GrappaListener interface for handling mouse-related activity that occurs on a graph. This particular GrappaListener implementation allows the following interactions with a displayed graph:
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
GrappaAdapter()
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent aev)
Invoked when an action occurs. |
protected void |
drillDown(Subgraph subg,
java.util.List elems,
int mode,
int setting)
|
void |
grappaClicked(Subgraph subg,
Element elem,
GrappaPoint pt,
int modifiers,
int clickCount,
GrappaPanel panel)
The method called when a 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GrappaAdapter()
| Method Detail |
|---|
public void grappaClicked(Subgraph subg,
Element elem,
GrappaPoint pt,
int modifiers,
int clickCount,
GrappaPanel panel)
grappaClicked in interface GrappaListenersubg - displayed subgraph where action occurredelem - subgraph element in which action occurredpt - the point where the action occurred (graph coordinates)modifiers - mouse modifiers in effectclickCount - count of mouse clicks that triggered this actionpanel - specific panel where the action occurred
public void grappaPressed(Subgraph subg,
Element elem,
GrappaPoint pt,
int modifiers,
GrappaPanel panel)
grappaPressed in interface GrappaListenersubg - 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
public void grappaReleased(Subgraph subg,
Element elem,
GrappaPoint pt,
int modifiers,
Element pressedElem,
GrappaPoint pressedPt,
int pressedModifiers,
GrappaBox outline,
GrappaPanel panel)
grappaReleased in interface GrappaListenersubg - 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 occurred
public void grappaDragged(Subgraph subg,
GrappaPoint currentPt,
int currentModifiers,
Element pressedElem,
GrappaPoint pressedPt,
int pressedModifiers,
GrappaBox outline,
GrappaPanel panel)
grappaDragged in interface GrappaListenersubg - 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 occurred
public java.lang.String grappaTip(Subgraph subg,
Element elem,
GrappaPoint pt,
int modifiers,
GrappaPanel panel)
grappaTip in interface GrappaListenersubg - 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
public void actionPerformed(java.awt.event.ActionEvent aev)
actionPerformed in interface java.awt.event.ActionListeneraev - the action event trigger.
protected void drillDown(Subgraph subg,
java.util.List elems,
int mode,
int setting)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||