simtools.shapes
Class ShapesContainer
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector
simtools.shapes.ShapesContainer
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess
- Direct Known Subclasses:
- ShapesContainer
public class ShapesContainer
- extends java.util.Vector
- implements java.io.Serializable
This class is a container to display shapes. It contains a DiagramComponent to
be layout in other swing containers and with edition functionalities. Internalization
is used to save and restore this container into/from a file
- Version:
- 1.0 2001
- Author:
- Claude Cazenave
- See Also:
- Serialized Form
Fields inherited from class java.util.Vector |
capacityIncrement, elementCount, elementData |
Fields inherited from class java.util.AbstractList |
modCount |
Methods inherited from class java.util.Vector |
capacity, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, isEmpty, lastElement, lastIndexOf, lastIndexOf, retainAll, setSize, size, subList, toArray, toArray, toString, trimToSize |
Methods inherited from class java.util.AbstractList |
iterator, listIterator, listIterator |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
iterator, listIterator, listIterator |
_diagParam
protected DiagramParameters _diagParam
_sFont
protected static java.awt.Font _sFont
_comp
protected transient ShapesContainer.ShapesComponent _comp
_oldCompounds
protected java.util.Vector _oldCompounds
ShapesContainer
public ShapesContainer(java.lang.String name)
createShapesComponent
protected ShapesContainer.ShapesComponent createShapesComponent(DiagramParameters param)
getComponent
public ShapesContainer.ShapesComponent getComponent()
getDiagramParameters
public DiagramParameters getDiagramParameters()
add
public boolean add(java.lang.Object o)
- Specified by:
add
in interface java.util.Collection
- Specified by:
add
in interface java.util.List
- Overrides:
add
in class java.util.Vector
add
public void add(int index,
java.lang.Object element)
- Specified by:
add
in interface java.util.List
- Overrides:
add
in class java.util.Vector
addAll
public boolean addAll(java.util.Collection c)
- Specified by:
addAll
in interface java.util.Collection
- Specified by:
addAll
in interface java.util.List
- Overrides:
addAll
in class java.util.Vector
addAll
public boolean addAll(int index,
java.util.Collection c)
- Specified by:
addAll
in interface java.util.List
- Overrides:
addAll
in class java.util.Vector
addElement
public void addElement(java.lang.Object obj)
- Overrides:
addElement
in class java.util.Vector
clear
public void clear()
- Specified by:
clear
in interface java.util.Collection
- Specified by:
clear
in interface java.util.List
- Overrides:
clear
in class java.util.Vector
insertElementAt
public void insertElementAt(java.lang.Object obj,
int index)
- Overrides:
insertElementAt
in class java.util.Vector
remove
public java.lang.Object remove(int index)
- Specified by:
remove
in interface java.util.List
- Overrides:
remove
in class java.util.Vector
remove
public boolean remove(java.lang.Object o)
- Specified by:
remove
in interface java.util.Collection
- Specified by:
remove
in interface java.util.List
- Overrides:
remove
in class java.util.Vector
removeAll
public boolean removeAll(java.util.Collection c)
- Specified by:
removeAll
in interface java.util.Collection
- Specified by:
removeAll
in interface java.util.List
- Overrides:
removeAll
in class java.util.Vector
removeAllElements
public void removeAllElements()
- Overrides:
removeAllElements
in class java.util.Vector
removeElement
public boolean removeElement(java.lang.Object obj)
- Overrides:
removeElement
in class java.util.Vector
removeElementAt
public void removeElementAt(int index)
- Overrides:
removeElementAt
in class java.util.Vector
removeRange
protected void removeRange(int fromIndex,
int toIndex)
- Overrides:
removeRange
in class java.util.Vector
set
public java.lang.Object set(int index,
java.lang.Object element)
- Specified by:
set
in interface java.util.List
- Overrides:
set
in class java.util.Vector
setElementAt
public void setElementAt(java.lang.Object obj,
int index)
- Overrides:
setElementAt
in class java.util.Vector
bringToFront
public void bringToFront(java.util.Vector shapes)
- Brings a set of selected shapes to the 'front' of the container, i.e at the
top in terms of depth
- Parameters:
shapes
- The list of shapes to bring to front
bringForward
public void bringForward(java.util.Vector shapes)
- Brings a set of shapes closer to the 'top' of the container
- Parameters:
shape
-
sendToBack
public void sendToBack(java.util.Vector shapes)
- Sends a set of selected shapes to the 'back' of the container, i.e at the
bottom in terms of depth
- Parameters:
shapes
- The list of shapes to bring to front
sendBackward
public void sendBackward(java.util.Vector shapes)
- Brings a shape closer to the 'bottom' of the container
- Parameters:
shape
-