|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--FigNode | +--org.argouml.uml.diagram.ui.FigNodeModelElement | +--org.argouml.uml.diagram.sequence.ui.FigSeqObject
Class to display graphics for a UML sequence in a diagram.
Field Summary | |
java.util.Vector |
_activations
|
boolean |
_created
|
int |
_createHeight
|
java.util.Vector |
_dynVector
|
java.util.Vector |
_ports
|
Fields inherited from class org.argouml.uml.diagram.ui.FigNodeModelElement |
_bigPort, _enclosedFigs, _encloser, _name, _readyToEdit, _shadowSize, _stereo, checkSize, ITALIC_LABEL_FONT, LABEL_FONT, MARGIN, ROWHEIGHT, STEREOHEIGHT, suppressCalcBounds |
Constructor Summary | |
FigSeqObject()
|
|
FigSeqObject(GraphModel gm,
java.lang.Object node)
|
Method Summary | |
void |
bindPort(java.lang.Object port,
Fig f)
Sets the port (some object in an underlying model) for Fig f. |
void |
breakActivation(FigSeqLink figLink,
java.util.Vector contents)
If the connected action of the FigSeqLink figLink is a return-action, the corresponding FigActivation will be cut in two FigActivations |
FigActivation |
canConcat(int portNumber)
Returns true, if two FigActivations at the given port-number can be replaced by one FigActivation |
boolean |
canDo(boolean side,
FigSeqLink fsl,
int portNumber)
If the FigSeqLink fsl has a return- or destroy-action, this method decides, if this link can have this action --> returns true |
void |
changePosition(java.util.Vector contents)
This method is called, when the FigSeqObject is moving around. |
java.lang.Object |
clone()
|
void |
concatActivation(FigSeqLink figLink,
java.util.Vector contents)
This method decides, if two FigActivations can be replaced with the first of this two FigActivations with the added lenght of both FigActivations |
int |
edgesCount(java.util.Vector contents)
Count the edges that are in this diagram |
java.util.Vector |
getContents()
Get the Vector of all figures, that are shown in the diagram, is important because in sequence- diagrams often you have to update all figures |
java.awt.Dimension |
getMinimumSize()
|
java.lang.Object |
hitPort(int x,
int y)
Reply the port that "owns" the topmost Fig under the given point, or null if none. |
Selection |
makeSelection()
|
protected void |
modelChanged(MElementEvent mee)
This is called aftern any part of the UML MModelElement has changed. |
void |
mouseClicked(java.awt.event.MouseEvent me)
If the user double clicks on any part of this FigNode, pass it down to one of the internal Figs. |
void |
mouseDragged(java.awt.event.MouseEvent me)
|
void |
mouseMoved(java.awt.event.MouseEvent me)
|
void |
mousePressed(java.awt.event.MouseEvent me)
|
void |
mouseReleased(java.awt.event.MouseEvent me)
|
java.util.Vector |
nearestLink(java.util.Vector edges,
int portNumber,
java.util.Vector contents)
Returns two Integers, one is the port-number of the FigSeqLink which is next to the given portNumber. |
java.lang.String |
ownerName()
|
void |
parseDynObjects(java.lang.String dynobjs)
|
java.lang.String |
placeString()
Reply text to be shown while placing node in diagram |
void |
renderingChanged()
Rerenders the fig if needed. |
void |
setBounds(int x,
int y,
int w,
int h,
int edges)
|
void |
setForCreate(FigSeqLink linkFig,
java.lang.String connectTo,
boolean isCreate)
If the FigSeqLink linkFig is connected to a create-action this FigSeqObject will be updated with the right values |
void |
setForDestroy(FigSeqLink linkFig,
java.lang.String connectTo,
boolean isTerminate)
If the FigSeqLink linkFig is connected to a destroy-action this FigSeqObject will be updated with the right values |
void |
setOwner(java.lang.Object node)
|
void |
terminateSymbolSetBounds(int x1,
int y1,
int x2,
int y2)
If the object is terminated , the termination symbol will appear as a cross. |
protected void |
textEdited(FigText ft)
This method is called after the user finishes editing a text field that is in the FigNodeModelElement. |
void |
translate(int dx,
int dy)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.awt.event.MouseListener |
mouseEntered, mouseExited |
Field Detail |
public java.util.Vector _ports
public java.util.Vector _activations
public boolean _created
public int _createHeight
public java.util.Vector _dynVector
Constructor Detail |
public FigSeqObject()
public FigSeqObject(GraphModel gm, java.lang.Object node)
Method Detail |
public Selection makeSelection()
makeSelection
in class FigNodeModelElement
public void translate(int dx, int dy)
public java.lang.String ownerName()
public void terminateSymbolSetBounds(int x1, int y1, int x2, int y2)
public java.lang.String placeString()
FigNodeModelElement
placeString
in class FigNodeModelElement
public java.lang.Object clone()
public void parseDynObjects(java.lang.String dynobjs)
public void setOwner(java.lang.Object node)
setOwner
in class FigNodeModelElement
public void bindPort(java.lang.Object port, Fig f)
public java.lang.Object hitPort(int x, int y)
public java.awt.Dimension getMinimumSize()
public void setBounds(int x, int y, int w, int h, int edges)
protected void textEdited(FigText ft) throws java.beans.PropertyVetoException
FigNodeModelElement
textEdited
in class FigNodeModelElement
java.beans.PropertyVetoException
protected void modelChanged(MElementEvent mee)
FigNodeModelElement
modelChanged
in class FigNodeModelElement
public void changePosition(java.util.Vector contents)
public int edgesCount(java.util.Vector contents)
public void setForCreate(FigSeqLink linkFig, java.lang.String connectTo, boolean isCreate)
public void setForDestroy(FigSeqLink linkFig, java.lang.String connectTo, boolean isTerminate)
public void breakActivation(FigSeqLink figLink, java.util.Vector contents)
public void concatActivation(FigSeqLink figLink, java.util.Vector contents)
public java.util.Vector getContents()
public boolean canDo(boolean side, FigSeqLink fsl, int portNumber)
public FigActivation canConcat(int portNumber)
public java.util.Vector nearestLink(java.util.Vector edges, int portNumber, java.util.Vector contents)
public void mousePressed(java.awt.event.MouseEvent me)
mousePressed
in interface java.awt.event.MouseListener
public void mouseClicked(java.awt.event.MouseEvent me)
FigNodeModelElement
mouseClicked
in interface java.awt.event.MouseListener
mouseClicked
in class FigNodeModelElement
public void mouseReleased(java.awt.event.MouseEvent me)
mouseReleased
in interface java.awt.event.MouseListener
public void mouseDragged(java.awt.event.MouseEvent me)
mouseDragged
in interface java.awt.event.MouseMotionListener
public void mouseMoved(java.awt.event.MouseEvent me)
mouseMoved
in interface java.awt.event.MouseMotionListener
public void renderingChanged()
FigNodeModelElement
renderingChanged
in class FigNodeModelElement
FigNodeModelElement.renderingChanged()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2003 (20030919) | ArgoUML Project Home | ArgoUML Cookbook |