HEADER

biouml.model
Class Compartment

java.lang.Object
  |
  +--com.beanexplorer.swing.table.Option
        |
        +--ru.biosoft.access.MutableDataElementSupport
              |
              +--biouml.model.DiagramElement
                    |
                    +--biouml.model.Node
                          |
                          +--biouml.model.Compartment
Direct Known Subclasses:
Diagram, EquivalentNodeGroup

public class Compartment
extends Node
implements DataCollection

General definition of the compartment as a container for nodes and edges between them.


Field Summary
 final static intSHAPE_ELLIPSE
           
 final static intSHAPE_RECTANGLE
           
 final static intSHAPE_ROUND_RECTANGLE
           

Fields inherited from class biouml.model.Node
background

Constructor Summary
Compartment(DataCollection parent, String id, Base kernel)
           
Compartment(DataCollection parent, Base kernel)
           

Method Summary
 voidaddDataCollectionListener(DataCollectionListener l)
           
 DiagramElementclone(Compartment compartment, Compartment newParent, String newName)
           
 DiagramElementclone(Compartment newParent, String newName)
           
 voidclose()
           
 booleancontains(String name)
           
 booleancontains(DataElement de)
           
 NodefindNode(String id)
           
 DataElementget(String name)
           
 StringgetCompleteName()
           
 ClassgetDataElementType()
           
 DataCollectionInfogetInfo()
           
 ListgetNameList()
           
 ColorgetShapeColor()
           
 DimensiongetShapeSize()
           
 intgetShapeType()
           
 intgetSize()
           
 voidinit()
           
 booleanisMutable()
           
 Iteratoriterator()
           
 voidpropagateElementChanged(DataCollection source, DataCollectionEvent primaryEvent)
           
 voidpropagateElementWillChange(DataCollection source, DataCollectionEvent primaryEvent)
           
 DataElementput(DataElement obj)
           
 DataElementremove(String name)
           
 voidremoveDataCollectionListener(DataCollectionListener l)
           
 voidsetShapeColor(Color shapeColor)
           
 voidsetShapeSize(Dimension shapeSize)
           
 voidsetShapeType(int shapeType)
           

Methods inherited from class biouml.model.Node
addEdge, edgeIterator, findCommonOrigin, getBackground, getImage, getLocation, removeEdge, setBackground, setImage, setLocation, setLocation

Methods inherited from class biouml.model.DiagramElement
getComment, getKernel, getRole, getTitle, getView, setComment, setKernel, setRole, setTitle, setView

Methods inherited from class ru.biosoft.access.MutableDataElementSupport
getName, getOrigin, toString

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

Field Detail

SHAPE_ELLIPSE

public final static int SHAPE_ELLIPSE

SHAPE_RECTANGLE

public final static int SHAPE_RECTANGLE

SHAPE_ROUND_RECTANGLE

public final static int SHAPE_ROUND_RECTANGLE
Constructor Detail

Compartment

public Compartment(DataCollection parent, String id, Base kernel)

Compartment

public Compartment(DataCollection parent, Base kernel)
Method Detail

addDataCollectionListener

public void addDataCollectionListener(DataCollectionListener l)
pending replace

clone

public DiagramElement clone(Compartment compartment, Compartment newParent, String newName)

clone

public DiagramElement clone(Compartment newParent, String newName)

close

public void close()
throws java.lang.Exception
pending to think

contains

public boolean contains(String name)

contains

public boolean contains(DataElement de)

findNode

public Node findNode(String id)
throws java.lang.Exception

get

public DataElement get(String name)
throws java.lang.Exception

getCompleteName

public String getCompleteName()

getDataElementType

public Class getDataElementType()

getInfo

public DataCollectionInfo getInfo()

getNameList

public List getNameList()

getShapeColor

public Color getShapeColor()

getShapeSize

public Dimension getShapeSize()

getShapeType

public int getShapeType()

getSize

public int getSize()

init

public void init()
pending to think

isMutable

public boolean isMutable()

iterator

public Iterator iterator()

propagateElementChanged

public void propagateElementChanged(DataCollection source, DataCollectionEvent primaryEvent)
todo comment

propagateElementWillChange

public void propagateElementWillChange(DataCollection source, DataCollectionEvent primaryEvent)
todo comment

put

public DataElement put(DataElement obj)
throws java.lang.Exception

remove

public DataElement remove(String name)
throws java.lang.Exception

removeDataCollectionListener

public void removeDataCollectionListener(DataCollectionListener l)
pending replace

setShapeColor

public void setShapeColor(Color shapeColor)

setShapeSize

public void setShapeSize(Dimension shapeSize)

setShapeType

public void setShapeType(int shapeType)

Association Links

to Class org.apache.log4j.Category

to Class java.awt.Color

to Class java.awt.Dimension

to Class ru.biosoft.access.DataCollection

Primary collection.

FOOTER

BOTTOM