CH.ifa.draw.framework
Class FigureSelection

java.lang.Object
  extended by CH.ifa.draw.framework.FigureSelection

public class FigureSelection
extends java.lang.Object

FigureSelection enables to transfer the selected figures to a clipboard.

Will soon be converted to the JDK 1.1 Transferable interface.

See Also:
Clipboard

Field Summary
static java.lang.String TYPE
          The type identifier of the selection.
 
Constructor Summary
FigureSelection(java.util.Vector figures)
          Constructes the Figure selection for the vector of figures.
 
Method Summary
 java.lang.Object getData(java.lang.String type)
          Gets the data of the selection.
 java.lang.String getType()
          Gets the type of the selection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE

public static final java.lang.String TYPE
The type identifier of the selection.

See Also:
Constant Field Values
Constructor Detail

FigureSelection

public FigureSelection(java.util.Vector figures)
Constructes the Figure selection for the vector of figures.

Method Detail

getType

public java.lang.String getType()
Gets the type of the selection.


getData

public java.lang.Object getData(java.lang.String type)
Gets the data of the selection. The result is returned as a Vector of Figures.

Returns:
a copy of the figure selection.