|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jinsight.svg.SVGEncoder
This class implements methods to configure the SVG graphic context and start the encoding process. The SVG graphic context is represented by the SVGGraphics class, which cannot be directly instantiated. Rather, SVGEncoder creates an instance of SVGGraphics and implements a 'get' method returning a reference to the SVGGraphics object.
SVGGraphics| Field Summary | |
static int |
HIGH_QUALITY
Constant used to enable antialiasing. |
static int |
LOW_QUALITY
Constant used to disable antialiasing. |
| Constructor Summary | |
SVGEncoder(java.awt.Component comp)
Class constructor. |
|
| Method Summary | |
void |
encode(java.io.OutputStream out)
Starts the SVG encoding process, sending bytes to an output stream. |
SVGGraphics |
getSVGGraphics()
Returns the SVG graphic context. |
void |
setQuality(int quality)
Sets the image quality. |
void |
setToolTipEnabled(boolean isToolTipEnabled)
Enables/disables tooltips. |
void |
setToolTipProperties(java.awt.Color toolTipForeground,
java.awt.Color toolTipBackground,
boolean isToolTipOpacityEnabled,
java.awt.Font toolTipFont)
Sets the properties of tooltips. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int LOW_QUALITY
public static final int HIGH_QUALITY
| Constructor Detail |
public SVGEncoder(java.awt.Component comp)
comp - The Component to be encoded.| Method Detail |
public SVGGraphics getSVGGraphics()
SVGGraphicspublic void setQuality(int quality)
LOW_QUALITY,
HIGH_QUALITYpublic void setToolTipEnabled(boolean isToolTipEnabled)
isToolTipEnabled - A boolean value(true/false).
public void setToolTipProperties(java.awt.Color toolTipForeground,
java.awt.Color toolTipBackground,
boolean isToolTipOpacityEnabled,
java.awt.Font toolTipFont)
toolTipForeground - A Color object.toolTipBackground - A Color object.isToolTipOpacityEnabled - A boolean value(true/false).toolTipFont - A Font object.setToolTipEnabled(boolean)
public void encode(java.io.OutputStream out)
throws java.io.IOException
out - An OutputStream object.
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||