gumbo.visualize.data
Class VertexModel
java.lang.Object
|
+--gumbo.util.AbstractDisposable
|
+--gumbo.visualize.data.DataModel
|
+--gumbo.visualize.data.PartModel
|
+--gumbo.visualize.data.PortModel
|
+--gumbo.visualize.data.VertexModel
- All Implemented Interfaces:
- Disposable, java.io.Serializable
- public class VertexModel
- extends PortModel
A part model representing a data element in a whole model that has data
relationships (has an internal topology), which are represented by edge
models. Edge models do not connect to vertex models per se. Instead,
the ends of an edge connect to port models in the vertex models.
In the part model tree, a vertex model can have none or more port models.
- Version:
- $Revision: 1.19 $
- Author:
- Jon Barrilleaux (jonb@jmbaai.com) of JMB and Associates Inc.
- See Also:
- Serialized Form
Field Summary |
static Group |
TYPES
A singleton immutable group containing the type (Class) of
this class. |
Constructor Summary |
VertexModel(java.lang.Object clientId,
java.lang.Object clientData)
Creates a new instance. |
Method Summary |
protected void |
checkParentPartModel(DataModel parent)
Safely returns if a part model can be set as the parent in
this model's part model tree. |
protected void |
implDispose()
Disposes connected edge models, and then disposes this model. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TYPES
public static final Group TYPES
- A singleton immutable group containing the type (Class) of
this class. Supports both Set and List views.
VertexModel
public VertexModel(java.lang.Object clientId,
java.lang.Object clientData)
- Creates a new instance.
- Parameters:
clientId
- See DataModel. Null if none, in which case the
client ID defaults to this object.clientData
- See DataModel. Null if none.
checkParentPartModel
protected void checkParentPartModel(DataModel parent)
- Safely returns if a part model can be set as the parent in
this model's part model tree. To be valid, this model
must not be disposed, this model must not be in a part model tree
(have a part model root), and the parent must be a WholeModel.
Override to add further qualifications.
- Overrides:
checkParentPartModel
in class PartModel
- Throws:
java.lang.IllegalStateException
- This object has been disposed.
java.lang.IllegalArgumentException
- Parent is null.
implDispose
protected void implDispose()
- Description copied from class:
PortModel
- Disposes connected edge models, and then disposes this model.
- Overrides:
implDispose
in class PortModel