|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gumbo.util.AbstractDisposable | +--gumbo.visualize.data.DataModel | +--gumbo.visualize.data.PartModel | +--gumbo.visualize.data.PortModel
A part model representing a connection point for edge models, such as on a vertex model.
In the part model tree, a port model can have none or more port models. A port model may connect to none or more edge model ends.
Field Summary | |
static Group |
TYPES
A singleton immutable group containing the type (Class) of this class. |
Constructor Summary | |
PortModel(java.lang.Object clientId,
java.lang.Object clientData)
Creates a new instance. |
Method Summary | |
void |
addPortModel(PortModel child)
Adds a port model as a child in this model's part model tree. |
protected void |
checkConnectable(WholeModel edgeRoot)
Safely returns if this port model can be connected to and edge model. |
java.util.Collection |
getAllEdgeModels(java.util.Collection retVal)
A convenience method for getting all the edge models connected to this port model, including those from nested port models. |
java.util.List |
getEdgeModels()
Gets an immutable view of the edge models connected to this port model. |
VertexModel |
getVertexModel()
Gets the vertex model containing this port model. |
protected void |
implDispose()
Disposes connected edge models, and then disposes this model. |
void |
removePortModel(PortModel child)
Removes a child port model from this model's part model tree, and disposes it. |
Methods inherited from class gumbo.visualize.data.PartModel |
addPartModel, checkAddPartModel, checkParentPartModel, checkRootPartModel, findPartModelRoot, findPartModelSubs, findPartModelSupers, getPartModelChildren, getPartModelParent, removePartModel |
Methods inherited from class gumbo.visualize.data.DataModel |
getClientData, getClientId, initDataModel, setClientData |
Methods inherited from class gumbo.util.AbstractDisposable |
dispose, isDisposed |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final Group TYPES
Constructor Detail |
public PortModel(java.lang.Object clientId, java.lang.Object clientData)
clientId
- See DataModel. Null if none, in which case the
client ID defaults to this object.clientData
- See DataModel. Null if none.Method Detail |
public void addPortModel(PortModel child)
child
- The child model. Ignored if null.public void removePortModel(PortModel child)
child
- The child model. If null or not a child, does nothing.public java.util.List getEdgeModels()
java.lang.IllegalStateException
- This model is not in a tree.public java.util.Collection getAllEdgeModels(java.util.Collection retVal)
retVal
- Return value object. Collection of models (EdgeModel).
Never null.
public VertexModel getVertexModel()
java.lang.IllegalStateException
- This model is not in a tree.protected void checkConnectable(WholeModel edgeRoot)
edgeRoot
- The part model root of the potential edge. Never null.
java.lang.IllegalStateException
- This object has been disposed.protected void implDispose()
implDispose
in class PartModel
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |