biouml.model
Class DiagramElement
java.lang.Object
|
+--com.beanexplorer.swing.table.Option
|
+--ru.biosoft.access.MutableDataElementSupport
|
+--biouml.model.DiagramElement
- Direct Known Subclasses:
- Edge, Node
- public abstract class DiagramElement
- extends MutableDataElementSupport
Common definition of diagram element.
Digram element is wrapper for some data element - kernel.
This kernel is storing all specific data.
- pending use
CompositeView instead of View., provide DynamicProperties to store any additiona data.
| Methods inherited from class com.beanexplorer.swing.table.Option |
setParent, getParent, addPropertyChangeListener, removePropertyChangeListener, copyListenersTo |
| Methods inherited from class java.lang.Object |
getClass, hashCode, equals, notify, notifyAll, wait, wait, wait |
DiagramElement
public DiagramElement(DataCollection parent, String name, Base kernel)
- Constructs the diagram element.
- Parameters:
- parent - the parent compartment
- name - the diagram element name
- kernel the data element storing specific data.
DiagramElement
public DiagramElement(DataCollection parent, Base kernel)
- Constructs the diagram element.
- Parameters:
- parent - the parent compartment
- kernel the data element storing specific data.
clone
public DiagramElement clone(Compartment newParent, String newName)
getComment
public String getComment()
getKernel
public Base getKernel()
getRole
public Role getRole()
getTitle
public String getTitle()
getView
public View getView()
- returns the
DiagramElement view.
setComment
public void setComment(String comment)
setKernel
public void setKernel(Base kernel)
setRole
public void setRole(Role role)
setTitle
public void setTitle(String title)
setView
public void setView(View view)
- Normally this function should be called by
DiagramViewBuilder.
to Class biouml.standard.type.Base
to Class ru.biosoft.graphics.View
- The
DiagramElement view.
to Class java.lang.String
- The
DiagramElement title.
By default title is kernel element name. However a user can change the diagram element title.
to Class java.lang.String
- Any comment can be assotiated with a
DiagramElement.
to Class biouml.model.Role
- Any {@link Role} can be assotiated with a
DiagramElement.
BOTTOM