FileDocCategorySizeDatePackage
TransferablePolyLine.javaAPI DocExample1581Sat Jan 24 10:44:38 GMT 2004je3.datatransfer

TransferablePolyLine

public class TransferablePolyLine extends Object implements Transferable
This class implements the Transferable interface for PolyLine objects. It also defines a DataFlavor used to describe this data type.

Fields Summary
public static DataFlavor
FLAVOR
static DataFlavor[]
FLAVORS
je3.graphics.PolyLine
line
Constructors Summary
public TransferablePolyLine(je3.graphics.PolyLine line)

  // This is the PolyLine we wrap.
        this.line = line; 
Methods Summary
public java.lang.ObjectgetTransferData(java.awt.datatransfer.DataFlavor f)
Return the wrapped PolyLine, if the flavor is right

	if (!f.equals(FLAVOR)) throw new UnsupportedFlavorException(f);
	return line;
    
public java.awt.datatransfer.DataFlavor[]getTransferDataFlavors()
Return the supported flavor

 return FLAVORS; 
public booleanisDataFlavorSupported(java.awt.datatransfer.DataFlavor f)
Check for the one flavor we support

return f.equals(FLAVOR);