|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.beanexplorer.beans.Option
ru.biosoft.access.MutableDataElementSupport
biouml.model.DiagramElement
biouml.model.Node
biouml.model.Compartment
General definition of the compartment as a container for nodes and edges between them.
| Field Summary | |
protected DataCollection |
collection
Primary collection. |
protected java.util.HashMap |
kernelMap
|
protected static org.apache.log4j.Category |
log
|
static int |
SHAPE_ELLIPSE
|
static int |
SHAPE_RECTANGLE
|
static int |
SHAPE_ROUND_RECTANGLE
|
protected java.awt.Color |
shapeColor
|
protected int |
shapeType
|
| Fields inherited from class biouml.model.Node |
background, edges, fixed, image, location, shapeSize |
| Fields inherited from class biouml.model.DiagramElement |
comment, kernel, role, title, view |
| Fields inherited from class ru.biosoft.access.MutableDataElementSupport |
name |
| Fields inherited from class com.beanexplorer.beans.Option |
notificationEnabled, propagationEnabled |
| Constructor Summary | |
Compartment(DataCollection parent,
Base kernel)
|
|
Compartment(DataCollection parent,
java.lang.String id,
Base kernel)
|
|
| Method Summary | |
void |
addDataCollectionListener(DataCollectionListener l)
Add a listener to the list that's notified each time a change to the data collection occurs. |
DiagramElement |
clone(Compartment newParent,
java.lang.String newName)
|
void |
close()
Closes data collection, releases all resources. |
protected boolean |
contains(Compartment compartment,
java.lang.String name)
|
boolean |
contains(DataElement de)
Returns true if this data collection contains the specified element, false otherwise |
boolean |
contains(java.lang.String name)
Returns true if this data collection contains the element with the specified name, false otherwise |
boolean |
containsKernel(Base kernel)
|
protected void |
doClone(Compartment compartment)
|
Node |
findNode(java.lang.String id)
|
DataElement |
get(java.lang.String name)
Returns the DataElement with the specified name.
|
java.lang.String |
getCompleteName()
Returns complete name of data collection. |
java.lang.Class |
getDataElementType()
Returns the type of DataElements stored in the data collection. |
DataCollectionInfo |
getInfo()
Returns additional info for this data collection. |
java.util.List |
getKernelNodes(Base kernel)
|
java.util.List |
getNameList()
Returns an unmodifiable view of the data element name list. |
java.awt.Color |
getShapeColor()
|
int |
getShapeType()
|
int |
getSize()
Returns the number of elements in this data collection. |
void |
init()
|
boolean |
isMutable()
Returns true if this data collection is mutable, false otherwise. |
java.util.Iterator |
iterator()
Returns an iterator over the data elements in this collection. |
void |
moveNodes(int dx,
int dy)
Recursively moves location of intrnal nodes. |
void |
propagateElementChanged(DataCollection source,
DataCollectionEvent primaryEvent)
|
void |
propagateElementWillChange(DataCollection source,
DataCollectionEvent primaryEvent)
|
DataElement |
put(DataElement obj)
Adds the specified data element to the collection. |
void |
release(java.lang.String dataElementName)
Do nothing because cache is not used. |
protected void |
remapEdge(DataCollection newParent,
Edge edge,
Node inNode,
Node outNode)
|
void |
remove(java.lang.String name)
Removes the specified data element from the collection, if present. |
void |
removeDataCollectionListener(DataCollectionListener l)
Remove a listener from the list that's notified each time a change to the data collection occurs. |
void |
setNotificationEnabled(boolean notificationEnabled)
Enable/disable events notification of two types: 1) PropertyChangeEvent (inhereted from Option) 2) DataCollectionEvent (encapsulated DataCollection) |
void |
setPropagationEnabled(boolean propagationEnabled)
Enable/disable events propagation of two types: 1) PropertyChangeEvent (inhereted from Option) 2) DataCollectionEvent (encapsulated DataCollection) |
void |
setShapeColor(java.awt.Color shapeColor)
|
void |
setShapeType(int shapeType)
|
| Methods inherited from class biouml.model.Node |
addEdge, doClone, edgeIterator, findCommonOrigin, getBackground, getEdges, getImage, getLocation, getShapeSize, isBackgroundHidden, isFixed, isNotResizable, removeEdge, setBackground, setFixed, setImage, setLocation, setLocation, setRelativeLocation, setShapeSize |
| Methods inherited from class biouml.model.DiagramElement |
getComment, getKernel, getRole, getTitle, getView, isKernelHidden, isRoleHidden, setComment, setKernel, setRole, setTitle, setView |
| Methods inherited from class ru.biosoft.access.MutableDataElementSupport |
getName, getOrigin, toString |
| Methods inherited from class com.beanexplorer.beans.Option |
addPropertyChangeListener, copyListenersTo, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getParent, isNotificationEnabled, isPropagationEnabled, removePropertyChangeListener, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ru.biosoft.access.DataCollection |
isNotificationEnabled, isPropagationEnabled |
| Methods inherited from interface ru.biosoft.access.DataElement |
getName, getOrigin |
| Methods inherited from interface ru.biosoft.access.MutableDataElement |
addPropertyChangeListener, removePropertyChangeListener |
| Field Detail |
protected static org.apache.log4j.Category log
protected java.util.HashMap kernelMap
protected java.awt.Color shapeColor
public static final int SHAPE_RECTANGLE
public static final int SHAPE_ROUND_RECTANGLE
public static final int SHAPE_ELLIPSE
protected int shapeType
protected DataCollection collection
| Constructor Detail |
public Compartment(DataCollection parent,
java.lang.String id,
Base kernel)
public Compartment(DataCollection parent,
Base kernel)
| Method Detail |
public Node findNode(java.lang.String id)
throws java.lang.Exception
java.lang.Exception
public void moveNodes(int dx,
int dy)
public boolean containsKernel(Base kernel)
public java.util.List getKernelNodes(Base kernel)
public java.awt.Color getShapeColor()
public void setShapeColor(java.awt.Color shapeColor)
public int getShapeType()
public void setShapeType(int shapeType)
public DataCollectionInfo getInfo()
DataCollectionnull.
getInfo in interface DataCollectionDataCollectionInfopublic int getSize()
DataCollection
getSize in interface DataCollectionpublic java.lang.Class getDataElementType()
DataCollection
getDataElementType in interface DataCollectionpublic boolean isMutable()
DataCollection
isMutable in interface DataCollectionpublic boolean contains(java.lang.String name)
DataCollection
contains in interface DataCollectionname - name of data element
public boolean contains(DataElement de)
DataCollection
contains in interface DataCollectionde - specified data element
public java.util.Iterator iterator()
DataCollection
iterator in interface DataCollectionpublic java.util.List getNameList()
DataCollectionUnsupportedOperationException.
The returned list is backed by the data collection,
so changes to the data collection are reflected in the returned list.
The name list can be sorted or unsorted depending on the DataCollection
implementing class.
getNameList in interface DataCollection
public DataElement get(java.lang.String name)
throws java.lang.Exception
DataCollectionDataElement with the specified name.
Returns null if the data collection
contains no data element for this name.
get in interface DataCollectionjava.lang.Exception
public DataElement put(DataElement obj)
throws java.lang.Exception
DataCollection
put in interface DataCollectionjava.lang.ExceptionDataCollection.isMutable()
public void remove(java.lang.String name)
throws java.lang.Exception
DataCollection
remove in interface DataCollectionjava.lang.Exception - If error occured.DataCollection.isMutable()public void addDataCollectionListener(DataCollectionListener l)
DataCollection
addDataCollectionListener in interface DataCollectionl - the DataCollectionListenerpublic void removeDataCollectionListener(DataCollectionListener l)
DataCollection
removeDataCollectionListener in interface DataCollectionl - the DataCollectionListenerpublic java.lang.String getCompleteName()
DataCollection
getCompleteName in interface DataCollection
public void close()
throws java.lang.Exception
DataCollection
close in interface DataCollectionjava.lang.Exception - If error occured.public void init()
public void release(java.lang.String dataElementName)
release in interface DataCollectionpublic void setNotificationEnabled(boolean notificationEnabled)
setNotificationEnabled in interface DataCollectionpublic void setPropagationEnabled(boolean propagationEnabled)
setPropagationEnabled in interface DataCollection
public void propagateElementWillChange(DataCollection source,
DataCollectionEvent primaryEvent)
propagateElementWillChange in interface DataCollection
public void propagateElementChanged(DataCollection source,
DataCollectionEvent primaryEvent)
propagateElementChanged in interface DataCollection
public DiagramElement clone(Compartment newParent,
java.lang.String newName)
throws java.lang.IllegalArgumentException
clone in class Nodejava.lang.IllegalArgumentExceptionprotected void doClone(Compartment compartment)
protected void remapEdge(DataCollection newParent,
Edge edge,
Node inNode,
Node outNode)
throws java.lang.Exception
java.lang.Exception
protected boolean contains(Compartment compartment,
java.lang.String name)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||