org.jhotdraw.standard
Class StandardFigureSelection

java.lang.Object
  extended by org.jhotdraw.standard.StandardFigureSelection
All Implemented Interfaces:
java.io.Serializable, FigureSelection

public class StandardFigureSelection
extends java.lang.Object
implements FigureSelection, java.io.Serializable

FigureSelection enables to transfer the selected figures to a clipboard.

Will soon be converted to the JDK 1.1 Transferable interface.

Version:
<$CURRENT_VERSION$>
See Also:
Clipboard, Serialized Form

Field Summary
static java.lang.String TYPE
          The type identifier of the selection.
 
Constructor Summary
StandardFigureSelection(FigureEnumeration fe, int figureCount)
          Constructes the Figure selection for the FigureEnumeration.
 
Method Summary
static FigureEnumeration duplicateFigures(FigureEnumeration toBeCloned, int figureCount)
           
 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
equals, 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

StandardFigureSelection

public StandardFigureSelection(FigureEnumeration fe,
                               int figureCount)
Constructes the Figure selection for the FigureEnumeration.

Method Detail

getType

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

Specified by:
getType in interface FigureSelection

getData

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

Specified by:
getData in interface FigureSelection
Returns:
a copy of the figure selection.

duplicateFigures

public static FigureEnumeration duplicateFigures(FigureEnumeration toBeCloned,
                                                 int figureCount)