|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.umd.cs.jazz.ZSceneGraphObject | +--edu.umd.cs.jazz.ZNode | +--edu.umd.cs.jazz.ZLeaf | +--edu.umd.cs.jazz.ZVisualLeaf | +--venice.ZVisualLeafModelElement
ZVisualLeafModelElement is a common superclass for all different visual components except ZPackage. This class includes model element handling functions so we don't need to duplicate that code everywhere.
Field Summary | |
private java.util.LinkedList |
mCompositeRelationships
|
private java.util.LinkedList |
mHiddenOfferedRealizations
List of this elements hidden offered interface realizations. |
protected java.lang.String |
mModelElementId
model element id |
protected java.lang.String |
mModelElementName
model element name |
protected java.lang.String |
mModelElementType
model element type |
protected boolean |
mModelElementVisible
is this model element visible |
private java.util.LinkedList |
mOfferedRealizationSubstitutions
List of this elements offered interface substituted realizations. |
private java.util.LinkedList |
mOriginalRelationships
The list of original relationships |
private java.util.LinkedList |
mRequiredInterfaceSubstitutions
|
private java.util.LinkedList |
mRequiredRealizations
List of this elements required interface realizations. |
Fields inherited from class edu.umd.cs.jazz.ZVisualLeaf |
cacheVolatile, visualComponents |
Fields inherited from class edu.umd.cs.jazz.ZNode |
clientProperties, editorFactory, findable, findable_DEFAULT, hasNodeListener, hasNodeListener_DEFAULT, parent, pickable, pickable_DEFAULT, savable, savable_DEFAULT, selectable, selectable_DEFAULT |
Fields inherited from class edu.umd.cs.jazz.ZSceneGraphObject |
bounds, inClone, listenerList, objRefTable, volatileBounds, volatileBounds_DEFAULT |
Constructor Summary | |
ZVisualLeafModelElement(java.lang.String inId)
|
Method Summary | |
void |
addRelationship(VRelationship inRelationship)
Add the given VRelationship , where this element
is either the source or destination, to this element's list of
original relationships. |
VRelationship |
addToCompositeRelationshipList(VRelationship inRel)
Add the given relationship to this element's list of composite relationships. |
void |
addToHiddenOfferedRealizations(VRelationship inRea)
Add relationship to this list. |
void |
addToOfferedRealizationSubstitutions(VRelationship inRea)
Add relationship to this list. |
void |
addToRequiredInterfaceSubstitutions(VRelationship inRea)
Add relationship to this list. |
void |
addToRequiredRealizations(VRelationship inRea)
Add relationship to this list. |
void |
clearHiddenOfferedRealizations()
Clear content of this list. |
void |
clearOfferedRealizationSubstitutions()
Clear content of this list. |
void |
clearRequiredInterfaceSubstitutions(VRelationship inRea)
Clear inRea from this list. |
void |
clearRequiredRealizations()
Clear content of this list. |
protected abstract void |
dataChanged()
dataChanged() is called when model element data is changed. subclasses should override this method with a method which modifies the component appearance according to data changes. |
void |
debugDump()
Dump information for this node to stdout. |
java.util.LinkedList |
getCompositeRelationships()
Returns the list of all composite relationships this element has. |
java.util.LinkedList |
getHiddenOfferedRealizations()
Get content of this list. |
java.lang.String |
getId()
returns the id of the element |
java.lang.String |
getName()
returns the name of the element |
java.util.LinkedList |
getOfferedRealizationSubstitutions()
Get content of this list. |
java.util.LinkedList |
getRelationships(VPackage inCrossThisPackage)
Returns a linked list of relationships that leave the given VPackage and are attached to this node and are not represented by any other relationship. |
java.util.LinkedList |
getRequiredInterfaceSubstitutions()
Get content of this list. |
java.util.LinkedList |
getRequiredRealizations()
Get content of this list. |
java.lang.String |
getType()
returns the type of the element |
boolean |
getVisible()
returns true if element is shown in the visualization |
VPackage |
getVParent()
get parent package for this node. |
void |
setName(java.lang.String inName)
sets the name of the element |
void |
setType(java.lang.String inType)
sets the type of the element |
void |
setVisible(boolean inState)
sets the visibility of the element |
Methods inherited from class edu.umd.cs.jazz.ZVisualLeaf |
addVisualComponent, addVisualComponents, clearVisualComponents, computeBounds, duplicateObject, getFirstVisualComponent, getNumVisualComponents, getVisualComponent, getVisualComponentBounds, getVisualComponentGlobalBounds, getVisualComponents, getVolatileBounds, indexOf, pick, removeVisualComponent, render, setState, setVisualComponent, setVisualComponent, trimToSize, updateObjectReferences, updateVolatility, writeObject, writeObject, writeObjectRecurse |
Methods inherited from class edu.umd.cs.jazz.ZNode |
|
Methods inherited from class edu.umd.cs.jazz.ZSceneGraphObject |
addMouseListener, addMouseMotionListener, clone, fireEvent, fireMouseEvent, getBounds, getBoundsReference, getListenerList, hasLisenerOfType, hasMouseListener, processMouseEvent, removeEventListener, removeMouseListener, removeMouseMotionListener, reshape, setBounds, setVolatileBounds |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
Methods inherited from interface venice.VModelElement |
getRelationshipConnectPoint, intersectWithLine |
Field Detail |
protected java.lang.String mModelElementId
protected java.lang.String mModelElementName
protected java.lang.String mModelElementType
protected boolean mModelElementVisible
private java.util.LinkedList mOriginalRelationships
private java.util.LinkedList mOfferedRealizationSubstitutions
private java.util.LinkedList mHiddenOfferedRealizations
private java.util.LinkedList mRequiredRealizations
private java.util.LinkedList mRequiredInterfaceSubstitutions
private java.util.LinkedList mCompositeRelationships
Constructor Detail |
public ZVisualLeafModelElement(java.lang.String inId)
Method Detail |
protected abstract void dataChanged()
public java.lang.String getId()
VModelElement
getId
in interface VModelElement
public java.lang.String getName()
VModelElement
getName
in interface VModelElement
public java.lang.String getType()
VModelElement
getType
in interface VModelElement
public boolean getVisible()
VModelElement
getVisible
in interface VModelElement
public void setName(java.lang.String inName)
VModelElement
setName
in interface VModelElement
public void setType(java.lang.String inType)
VModelElement
setType
in interface VModelElement
public void setVisible(boolean inState)
VModelElement
setVisible
in interface VModelElement
public java.util.LinkedList getRelationships(VPackage inCrossThisPackage)
VModelElement
Relationships can be original relationships as described in the model or temporary relationships created to reprensent composite relationships that are needed when child nodes move their dependencies to their parents.
If the parameter is null, all relationships attached to this node are returned.
getRelationships
in interface VModelElement
venice.VModelElement
inLeaveThisPackage
- the package that all returned relationships
must leavepublic void addRelationship(VRelationship inRelationship)
VModelElement
VRelationship
, where this element
is either the source or destination, to this element's list of
original relationships. Original relationships are those relations
that are defined in the GXL model, not created on the fly by
the visualization.addRelationship
in interface VModelElement
venice.VModelElement
inRelationship
- add given relation as an original
relationship for this model element.public void addToHiddenOfferedRealizations(VRelationship inRea)
public void addToOfferedRealizationSubstitutions(VRelationship inRea)
public void addToRequiredInterfaceSubstitutions(VRelationship inRea)
public void addToRequiredRealizations(VRelationship inRea)
public void clearHiddenOfferedRealizations()
public void clearOfferedRealizationSubstitutions()
public void clearRequiredInterfaceSubstitutions(VRelationship inRea)
public void clearRequiredRealizations()
public java.util.LinkedList getRequiredRealizations()
public java.util.LinkedList getHiddenOfferedRealizations()
public java.util.LinkedList getOfferedRealizationSubstitutions()
public java.util.LinkedList getRequiredInterfaceSubstitutions()
public VPackage getVParent()
VModelElement
getVParent
in interface VModelElement
public java.util.LinkedList getCompositeRelationships()
VModelElement
getCompositeRelationships
in interface VModelElement
venice.VModelElement
public VRelationship addToCompositeRelationshipList(VRelationship inRel)
VModelElement
addToCompositeRelationshipList
in interface VModelElement
venice.VModelElement
inRel
- The relationship to add to list of composite
relationships.public void debugDump()
VModelElement
debugDump
in interface VModelElement
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |