|
JHotDraw 7.0.9 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jhotdraw.samples.odg.io.ODGInputFormat
public class ODGInputFormat
ODGInputFormat. This format is aimed to comply to the Open Document Version 1.1 Drawing format. http://docs.oasis-open.org/office/v1.1/OS/OpenDocument-v1.1.pdf
Constructor Summary | |
---|---|
ODGInputFormat()
Creates a new instance. |
Method Summary | |
---|---|
javax.swing.filechooser.FileFilter |
getFileFilter()
Return a FileFilter that can be used to identify files which can be restored with this Storage Format. |
javax.swing.JComponent |
getInputFormatAccessory()
Return a JFileChooser accessory that can be used to customize the input format. |
boolean |
isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
Returns true, if this InputFormat can readFigures TransferData using the specified DataFlavor. |
void |
read(java.io.File file,
Drawing drawing)
Reads figures from a file and adds them to the specified drawing. |
void |
read(java.io.InputStream in,
Drawing drawing)
Reads figures from a file and adds them to the specified drawing. |
java.util.LinkedList<Figure> |
readFigures(java.io.InputStream in)
|
java.util.List<Figure> |
readFigures(java.awt.datatransfer.Transferable t)
Reads figures from the specified Transferable. |
java.util.LinkedList<Figure> |
readFiguresFromDocumentContent(java.io.InputStream in)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ODGInputFormat()
Method Detail |
---|
public javax.swing.filechooser.FileFilter getFileFilter()
InputFormat
getFileFilter
in interface InputFormat
public javax.swing.JComponent getInputFormatAccessory()
InputFormat
getInputFormatAccessory
in interface InputFormat
public void read(java.io.File file, Drawing drawing) throws java.io.IOException
InputFormat
read
in interface InputFormat
file
- The file.drawing
- The drawing.
java.io.IOException
public void read(java.io.InputStream in, Drawing drawing) throws java.io.IOException
InputFormat
read
in interface InputFormat
in
- The input stream.drawing
- The drawing.
java.io.IOException
public boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
InputFormat
isDataFlavorSupported
in interface InputFormat
flavor
- A DataFlavor.public java.util.List<Figure> readFigures(java.awt.datatransfer.Transferable t) throws java.awt.datatransfer.UnsupportedFlavorException, java.io.IOException
InputFormat
readFigures
in interface InputFormat
t
- The Transferable.
java.awt.datatransfer.UnsupportedFlavorException
java.io.IOException
public java.util.LinkedList<Figure> readFigures(java.io.InputStream in) throws java.io.IOException
java.io.IOException
public java.util.LinkedList<Figure> readFiguresFromDocumentContent(java.io.InputStream in) throws java.io.IOException
java.io.IOException
|
Copyright 1996-2007 (c) JHotDraw.org. Some rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |