|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ch.elca.dependency.view.MyGrappaAdapter
A GrappaAdapter for the att.grappa.GrappaPanel
class.
Field Summary |
Constructor Summary | |
MyGrappaAdapter()
|
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent aev)
Invoked when an action occurs. |
void |
clearSelection(GrappaPanel panel,
Subgraph subg)
Clears all the selections in all the views. |
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. |
void |
reference(Selection select,
DependencyDetails detail)
References the Selection interface for notify the other
views about changing selections. |
void |
setZoomFactor(double positive,
double negative)
Sets the zoom factor for the zoom out / in. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MyGrappaAdapter()
Method Detail |
public void reference(Selection select, DependencyDetails detail)
Selection
interface for notify the other
views about changing selections. And also the
DependencyDetails
interface for showing additional
dependency information for an arbitrary edge.
select
- Selection interface.public void setZoomFactor(double positive, double negative)
public void grappaClicked(Subgraph subg, Element elem, GrappaPoint pt, int modifiers, int clickCount, GrappaPanel panel)
grappaClicked
in interface GrappaListener
subg
- 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 occurredpublic void grappaPressed(Subgraph subg, Element elem, GrappaPoint pt, int modifiers, GrappaPanel panel)
grappaPressed
in interface GrappaListener
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 occurredpublic void grappaReleased(Subgraph subg, Element elem, GrappaPoint pt, int modifiers, Element pressedElem, GrappaPoint pressedPt, int pressedModifiers, GrappaBox outline, GrappaPanel panel)
grappaReleased
in interface GrappaListener
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 occurredpublic void grappaDragged(Subgraph subg, GrappaPoint currentPt, int currentModifiers, Element pressedElem, GrappaPoint pressedPt, int pressedModifiers, GrappaBox outline, GrappaPanel panel)
grappaDragged
in interface GrappaListener
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 occurredpublic java.lang.String grappaTip(Subgraph subg, Element elem, GrappaPoint pt, int modifiers, GrappaPanel panel)
grappaTip
in interface GrappaListener
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
public void actionPerformed(java.awt.event.ActionEvent aev)
actionPerformed
in interface java.awt.event.ActionListener
aev
- the action event trigger.public void clearSelection(GrappaPanel panel, Subgraph subg)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |