java.lang.Object
org.jhotdraw8.draw.input.MultiClipboardInputFormat
- All Implemented Interfaces:
ClipboardInputFormat
MultiClipboardOutputFormat.
- Author:
- Werner Randelshofer
-
Constructor Summary
ConstructorsConstructorDescriptionMultiClipboardInputFormat(List<Supplier<ClipboardInputFormat>> formatSuppliers) MultiClipboardInputFormat(ClipboardInputFormat... formats) -
Method Summary
-
Constructor Details
-
MultiClipboardInputFormat
-
MultiClipboardInputFormat
-
-
Method Details
-
read
public Set<Figure> read(javafx.scene.input.Clipboard clipboard, DrawingModel model, Drawing drawing, Figure layer) throws IOException Description copied from interface:ClipboardInputFormatReads a Drawing from the clipboard.- Specified by:
readin interfaceClipboardInputFormat- Parameters:
clipboard- The clipboard.model- the drawing model over which updates of the drawing must be performed.drawing- The contents of the clipboard is added to this drawing.layer- If you provide a non-null value, the contents of the clipboard is added to this parent. Otherwise, the content is added into an unspecified layer.- Returns:
- the figures that were read from the clipboard
- Throws:
IOException- if an IO error occurs
-