|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for all CoCompose language elements that can participate in a relationship.
Method Summary | |
void |
addRelationship(int index,
Relationship relationship)
Adds a relationship for this element at the specified index. |
void |
addRelationship(Relationship relationship)
Adds a relationship for this element. |
Color |
getBackgroundColor()
Gets the background color. |
Point |
getPosition()
Gets the element position. |
List |
getRelationships()
Gets the relationships for this element. |
List |
getSourceRelationships()
Gets the source relationships for this element. |
List |
getTargetRelationships()
Gets the target relationships for this element. |
void |
removeRelationship(Relationship relationship)
Removes a relationship from this element. |
void |
setBackgroundColor(Color bgcolor)
Sets the background color. |
void |
setPosition(Point position)
Sets the element position. |
Methods inherited from interface be.ac.vub.cocompose.lang.core.Namespace |
addOwnedElement, addOwnedElement, getDeepOwnedElements, getOwnedElement, getOwnedElementId, getOwnedElements, getOwnedElements, isRegistered, registerNameChange, removeOwnedElement |
Methods inherited from interface be.ac.vub.cocompose.lang.core.ModelElement |
getId, getModel, getName, getNamespace, setId, setName, setNamespace |
Methods inherited from interface be.ac.vub.cocompose.lang.Element |
addPropertyChangeListener, removePropertyChangeListener |
Methods inherited from interface be.ac.vub.cocompose.lang.VisitedElement |
accept |
Method Detail |
public List getRelationships()
public List getSourceRelationships()
public List getTargetRelationships()
public void addRelationship(Relationship relationship)
relationship
- - the relationship to add.public void addRelationship(int index, Relationship relationship)
index
- - the index at which to add the relationship.relationship
- - the relationship to add.public void removeRelationship(Relationship relationship)
relationship
- - the relationship to remove.public Point getPosition()
public void setPosition(Point position)
position
- - the position.public Color getBackgroundColor()
public void setBackgroundColor(Color bgcolor)
bgcolor
- - the background color.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |