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.2Constructor 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()
OutputFormat
getFileFilter
in interface OutputFormat
public java.lang.String getFileExtension()
OutputFormat
getFileExtension
in interface OutputFormat
public javax.swing.JComponent getOutputFormatAccessory()
OutputFormat
getOutputFormatAccessory
in interface OutputFormat
public void write(java.net.URI uri, Drawing drawing) throws java.io.IOException
OutputFormat
write
in interface OutputFormat
uri
- The uri.drawing
- The drawing.java.io.IOException
public void write(java.io.File file, Drawing drawing) throws java.io.IOException
java.io.IOException
public void write(java.io.OutputStream out, Drawing drawing) throws java.io.IOException
OutputFormat
write
in interface OutputFormat
out
- The output stream.drawing
- The drawing.java.io.IOException
public void write(java.io.OutputStream out, Drawing drawing, java.awt.geom.AffineTransform drawingTransform, java.awt.Dimension imageSize) throws java.io.IOException
java.io.IOException
public 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.IOException
public void write(java.io.OutputStream out, java.util.List<Figure> figures) throws java.io.IOException
java.io.IOException
public java.awt.datatransfer.Transferable createTransferable(Drawing drawing, java.util.List<Figure> figures, double scaleFactor) throws java.io.IOException
OutputFormat
createTransferable
in interface OutputFormat
drawing
- 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.IOException
protected void writeElement(IXMLElement parent, Figure f) throws java.io.IOException
java.io.IOException