|
JHotDraw 7.5.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jhotdraw.samples.svg.io.ImageMapOutputFormat
public class ImageMapOutputFormat
ImageMapOutputFormat exports a SVG drawing as an HTML 4.01 MAP
element.
For more information see:
http://www.w3.org/TR/html401/struct/objects.html#h-13.6.2
Constructor Summary | |
---|---|
ImageMapOutputFormat()
Creates a new instance. |
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageMapOutputFormat()
Method Detail |
---|
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
|
Copyright 1996-2010 (c) by the authors and contributors of the JHotDraw project. Some rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |