|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.sketch.toolbox.ImageTransducer
public class ImageTransducer
Draw the ink into a bitmap image for cut-and-paste.
Constructor Summary | |
---|---|
ImageTransducer(Component comp)
This constructor should only be called once, to create the prototype object. |
Method Summary | |
---|---|
Object |
getTransferData(DataFlavor flavor)
Render the selection into an image and return the image. |
DataFlavor[] |
getTransferDataFlavors()
Return StringSelection's data flavors. |
boolean |
isDataFlavorSupported(DataFlavor in)
Call StringSelection's predicate. |
void |
lostOwnership(Clipboard clipboard,
Transferable contents)
Do nothing. |
Transducer |
newInstance(SketchModel in)
Apply the transducer to the given set of strokes by performing sketch recognition on the given strokes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageTransducer(Component comp)
Method Detail |
---|
public DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors
in interface Transferable
public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException
getTransferData
in interface Transferable
UnsupportedFlavorException
IOException
public boolean isDataFlavorSupported(DataFlavor in)
isDataFlavorSupported
in interface Transferable
public void lostOwnership(Clipboard clipboard, Transferable contents)
lostOwnership
in interface ClipboardOwner
public Transducer newInstance(SketchModel in)
newInstance
in interface Transducer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |