|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector
simtools.diagram.DiagramClipboard
public class DiagramClipboard
This class is a clipboard for a DiagramComponent It holds copy of parts of the diagram in order to deal with copy/cut/paste operations Only one instance of this class is assumed to allow the copy betwwen several diagrams.
DiagramComponent,
Serialized Form| Field Summary | |
|---|---|
protected static DiagramClipboard |
_instance
the global instance of the clipboard |
| Fields inherited from class java.util.Vector |
|---|
capacityIncrement, elementCount, elementData |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
DiagramClipboard()
Creates a clipboard |
|
| Method Summary | |
|---|---|
void |
addListener(DiagramClipboardListener dcpl)
Adds a new Listener on clipboard |
void |
clear()
Erases the clipboard content |
static void |
create()
Creates a clipboard Only one call is assumed |
static boolean |
empty()
Checks if the global clipboard is empty |
static DiagramClipboard |
get()
Gets the global clipboard |
void |
removeAllListeners()
Removes all Listeners on clipboard |
void |
removeListener(DiagramClipboardListener dcpl)
Removes a Listener on clipboard |
static void |
reset()
Erases the global clipboard content |
static void |
set(java.util.Vector v)
Fills the global clipboard |
void |
setAll(java.util.Vector v)
Fills the clipboard |
| Methods inherited from class java.util.Vector |
|---|
add, add, addAll, addAll, addElement, capacity, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, 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 |
| Field Detail |
|---|
protected static DiagramClipboard _instance
| Constructor Detail |
|---|
public DiagramClipboard()
| Method Detail |
|---|
public static DiagramClipboard get()
public static void reset()
public static boolean empty()
public static void set(java.util.Vector v)
v - a vector of elementspublic static void create()
public void clear()
clear in interface java.util.Collectionclear in interface java.util.Listclear in class java.util.Vectorpublic void setAll(java.util.Vector v)
v - a vector of elementspublic void addListener(DiagramClipboardListener dcpl)
public void removeListener(DiagramClipboardListener dcpl)
public void removeAllListeners()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||