public class CompositeTransducer extends Object implements Transducer, Cloneable
| Constructor and Description |
|---|
CompositeTransducer(Transducer[] children)
This constructor should only be called once, to create
the prototype object.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getTransferData(DataFlavor flavor)
Perform recognition on the sketch model and return the
transfer data as a string, or as plain text (based on
StringSelection's implementation of getTransferData();
|
DataFlavor[] |
getTransferDataFlavors()
Return the union of all the children's data flavors.
|
boolean |
isDataFlavorSupported(DataFlavor in)
Return whether any of the child transducers support the given
flavor.
|
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.
|
protected void |
setSketchModel(SketchModel in)
Set the sketch model for a new instance of the transducer.
|
public CompositeTransducer(Transducer[] children)
public DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors in interface Transferablepublic Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException
getTransferData in interface TransferableUnsupportedFlavorExceptionIOExceptionpublic boolean isDataFlavorSupported(DataFlavor in)
isDataFlavorSupported in interface Transferablepublic void lostOwnership(Clipboard clipboard, Transferable contents)
lostOwnership in interface ClipboardOwnerpublic Transducer newInstance(SketchModel in)
newInstance in interface Transducerprotected void setSketchModel(SketchModel in) throws RuntimeException
RuntimeExceptionCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.