|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ModeCreate | +--org.argouml.uml.diagram.sequence.ui.ModeCreateLink
Mode to create a link between two figobjects. This mode extends ModeCreate and not ModeCreateEdge because ModeCreateEdge hides its variables a bit too much...
Field Summary | |
---|---|
private java.lang.Object |
_newEdge
The new NetEdge that is being created |
private FigNode |
_sourceFigNode
The FigNode on the NetNode that owns the start port |
private java.lang.Object |
_startPort
The NetPort where the arc is paintn from |
private Fig |
_startPortFig
The Fig that presents the starting NetPort |
Constructor Summary | |
---|---|
ModeCreateLink()
|
|
ModeCreateLink(Editor par)
|
Method Summary | |
---|---|
Fig |
createNewItem(java.awt.event.MouseEvent me,
int snapX,
int snapY)
|
java.lang.String |
instructions()
|
void |
mouseDragged(java.awt.event.MouseEvent me)
|
void |
mousePressed(java.awt.event.MouseEvent me)
On mousePressed determine what port the user is dragging from. |
void |
mouseReleased(java.awt.event.MouseEvent me)
On mouseReleased, find the port in the destination node that's on the same height as the source port fig, ask the GraphModel to connect the two ports. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.lang.Object _startPort
private Fig _startPortFig
private FigNode _sourceFigNode
private java.lang.Object _newEdge
Constructor Detail |
public ModeCreateLink()
public ModeCreateLink(Editor par)
Method Detail |
public Fig createNewItem(java.awt.event.MouseEvent me, int snapX, int snapY)
public java.lang.String instructions()
public void mousePressed(java.awt.event.MouseEvent me)
public void mouseReleased(java.awt.event.MouseEvent me)
public void mouseDragged(java.awt.event.MouseEvent me)
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20040306) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |