public class ImageMapOutputFormat extends java.lang.Object implements OutputFormat
MAP
element.
For more information see:
http://www.w3.org/TR/html401/struct/objects.html#h-13.6.2| Constructor and Description |
|---|
ImageMapOutputFormat()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.datatransfer.Transferable |
createTransferable(Drawing drawing,
java.util.List<Figure> figures,
double scaleFactor)
Creates a Transferable for the specified list of Figures.
|
java.lang.String |
getFileExtension()
Returns the file extension for the output format.
|
javax.swing.filechooser.FileFilter |
getFileFilter()
Return a FileFilter that can be used to identify files which can be stored
with this output format.
|
javax.swing.JComponent |
getOutputFormatAccessory()
Return a JFileChooser accessory that can be used to customize the output
format.
|
void |
write(java.io.File file,
Drawing drawing) |
void |
write(java.io.OutputStream out,
Drawing drawing)
Writes a Drawing into an output stream.
|
void |
write(java.io.OutputStream out,
Drawing drawing,
java.awt.geom.AffineTransform drawingTransform,
java.awt.Dimension imageSize)
Writes the drawing to the specified output stream.
|
void |
write(java.io.OutputStream out,
java.util.List<Figure> figures)
All other write methods delegate their work to here.
|
void |
write(java.io.OutputStream out,
java.util.List<Figure> figures,
java.awt.geom.AffineTransform drawingTransform,
java.awt.Dimension imageSize)
Writes the figures to the specified output stream.
|
void |
write(java.net.URI uri,
Drawing drawing)
Writes a Drawing into an URI.
|
protected void |
writeElement(IXMLElement parent,
Figure f) |
public javax.swing.filechooser.FileFilter getFileFilter()
OutputFormatgetFileFilter in interface OutputFormatpublic java.lang.String getFileExtension()
OutputFormatgetFileExtension in interface OutputFormatpublic javax.swing.JComponent getOutputFormatAccessory()
OutputFormatgetOutputFormatAccessory in interface OutputFormatpublic void write(java.net.URI uri,
Drawing drawing)
throws java.io.IOException
OutputFormatwrite in interface OutputFormaturi - The uri.drawing - The drawing.java.io.IOExceptionpublic void write(java.io.File file,
Drawing drawing)
throws java.io.IOException
java.io.IOExceptionpublic void write(java.io.OutputStream out,
Drawing drawing)
throws java.io.IOException
OutputFormatwrite in interface OutputFormatout - The output stream.drawing - The drawing.java.io.IOExceptionpublic void write(java.io.OutputStream out,
Drawing drawing,
java.awt.geom.AffineTransform drawingTransform,
java.awt.Dimension imageSize)
throws java.io.IOException
java.io.IOExceptionpublic void write(java.io.OutputStream out,
java.util.List<Figure> figures,
java.awt.geom.AffineTransform drawingTransform,
java.awt.Dimension imageSize)
throws java.io.IOException
java.io.IOExceptionpublic void write(java.io.OutputStream out,
java.util.List<Figure> figures)
throws java.io.IOException
java.io.IOExceptionpublic java.awt.datatransfer.Transferable createTransferable(Drawing drawing, java.util.List<Figure> figures, double scaleFactor) throws java.io.IOException
OutputFormatcreateTransferable in interface OutputFormatdrawing - The drawing.figures - A list of figures of the drawing.scaleFactor - The factor to be used, when the Transferable creates
an image with a fixed size from the figures.java.io.IOExceptionprotected void writeElement(IXMLElement parent, Figure f) throws java.io.IOException
java.io.IOException