|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteasik.sketch.SetPoints
public class SetPoints
Graph Listener to set points on edges so that multiple edges between two nodes can be displayed properly.
| Constructor Summary | |
|---|---|
SetPoints()
Create the new action |
|
| Method Summary | |
|---|---|
java.awt.Point |
calculatePoint(int sourceX,
int sourceY,
int destX,
int destY,
int spacer)
Calculates the point which the edge should bend to. |
void |
graphChanged(org.jgraph.event.GraphModelEvent e)
When action is performed, update point |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SetPoints()
| Method Detail |
|---|
public void graphChanged(org.jgraph.event.GraphModelEvent e)
graphChanged in interface org.jgraph.event.GraphModelListenere - The action event
public java.awt.Point calculatePoint(int sourceX,
int sourceY,
int destX,
int destY,
int spacer)
sourceX - The source X co-ordsourceY - The source Y co-orddestX - The dest X co-orddestY - The dest Y co-ordspacer - The space from the home position (based on # of edges)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||