com.cosylab.vdct.graphics.objects
Class ContainerObject

java.lang.Object
  extended by com.cosylab.vdct.graphics.objects.VisibleObject
      extended by com.cosylab.vdct.graphics.objects.ContainerObject
All Implemented Interfaces:
Visitable
Direct Known Subclasses:
Border, Group, LinkManagerObject

public abstract class ContainerObject
extends VisibleObject

Insert the type's description here. Creation date: (21.12.2000 20:27:25)

Author:
Matej Sekoranja

Field Summary
protected  java.util.Hashtable subObjects
           
protected  java.util.Vector subObjectsV
           
protected  boolean useHashtable
           
 
Fields inherited from class com.cosylab.vdct.graphics.objects.VisibleObject
x, y, zoomImage
 
Constructor Summary
ContainerObject(ContainerObject parent)
          Insert the method's description here.
ContainerObject(ContainerObject parent, boolean useHashtable)
          Insert the method's description here.
 
Method Summary
 void addSubObject(java.lang.String id, VisibleObject object)
          Insert the method's description here.
 void addSubObject(java.lang.String id, VisibleObject object, boolean create)
          "Helper" method (e.g.
 void addSubObject(java.lang.String id, VisibleObject object, int position)
           
 void clear()
          Insert the method's description here.
 boolean containsObject(java.lang.String id)
          Insert the method's description here.
 ContainerObject getRootContainer()
           
 java.lang.Object getSubObject(java.lang.String id)
          Insert the method's description here.
 java.util.Hashtable getSubObjects()
          Insert the method's description here.
 java.util.Vector getSubObjectsV()
          Insert the method's description here.
 java.lang.Object removeObject(java.lang.String id)
          Insert the method's description here.
 void updateFields()
           
 
Methods inherited from class com.cosylab.vdct.graphics.objects.VisibleObject
destroy, draw, forceValidation, getColor, getDsId, getFont, getHashID, getHeight, getLabel, getLeftOffset, getMarkedX, getMarkedY, getMoveInsideView, getParent, getRheight, getRightOffset, getRlabelX, getRlabelY, getRscale, getRwidth, getRx, getRy, getScale, getTopOffset, getVisibleColor, getWidth, getX, getY, intersects, intersects, isDestroyed, isVisible, isZoomRepaint, markPosition, paint, postDraw, postPaint, revalidatePosition, setColor, setDestroyed, setFont, setHeight, setLabel, setParent, setRheight, setRlabelX, setRlabelY, setRwidth, setRx, setRy, setScale, setWidth, setX, setY, setZoomRepaint, snapToGrid, unconditionalValidation, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.cosylab.vdct.graphics.objects.Visitable
accept
 

Field Detail

useHashtable

protected boolean useHashtable

subObjects

protected java.util.Hashtable subObjects

subObjectsV

protected java.util.Vector subObjectsV
Constructor Detail

ContainerObject

public ContainerObject(ContainerObject parent)
Insert the method's description here. Creation date: (21.12.2000 20:40:08)

Parameters:
parent - com.cosylab.vdct.graphics.objects.ContainerObject

ContainerObject

public ContainerObject(ContainerObject parent,
                       boolean useHashtable)
Insert the method's description here. Creation date: (29.1.2001 22:45:17)

Parameters:
parent - com.cosylab.vdct.graphics.objects.ContainerObject
useHashtable - boolean
Method Detail

addSubObject

public void addSubObject(java.lang.String id,
                         VisibleObject object)
Insert the method's description here. Creation date: (21.12.2000 20:30:04)

Parameters:
id - java.lang.String
object - com.cosylab.vdct.graphics.objects.VisibleObject

addSubObject

public void addSubObject(java.lang.String id,
                         VisibleObject object,
                         int position)

addSubObject

public void addSubObject(java.lang.String id,
                         VisibleObject object,
                         boolean create)
"Helper" method (e.g. for Group).

Parameters:
id -
object -
create -

clear

public void clear()
Insert the method's description here. Creation date: (28.1.2001 12:04:45)


containsObject

public boolean containsObject(java.lang.String id)
Insert the method's description here. Creation date: (21.12.2000 20:34:57)

Parameters:
id - java.lang.String
Returns:
boolean

getSubObject

public java.lang.Object getSubObject(java.lang.String id)
Insert the method's description here. Creation date: (28.1.2001 16:54:17)

Parameters:
id - java.lang.String
Returns:
java.lang.Object

getSubObjects

public java.util.Hashtable getSubObjects()
Insert the method's description here. Creation date: (21.12.2000 20:35:48)

Returns:
java.util.Hashtable

getSubObjectsV

public java.util.Vector getSubObjectsV()
Insert the method's description here. Creation date: (21.12.2000 20:35:48)

Returns:
java.util.Vector

removeObject

public java.lang.Object removeObject(java.lang.String id)
Insert the method's description here. Creation date: (21.12.2000 20:32:49)

Parameters:
id - java.lang.String
Returns:
java.lang.Object

updateFields

public void updateFields()

getRootContainer

public ContainerObject getRootContainer()
Overrides:
getRootContainer in class VisibleObject