|
Chart FX 7 for Java Server | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.softwarefx.chartfx.server.writer.svg.SvgWriter
public class SvgWriter
Provides access to the Chart's SVG Writer object.
Chart FX allows generation of charts using supported Chart FX external writers. The Svg Class is used to configure additional attributes for the generation of SVG formatted charts.
Constructor Summary | |
---|---|
SvgWriter()
|
Method Summary | |
---|---|
void |
addAddContentListener(SvgContentListener value)
Adds a AddContentListener to the listener list. |
SvgContentListener[] |
getAddContentListeners()
Returns an array of all the AddContentListeners added to this class with addAddContentListeners(). |
Locale |
getCulture()
Deprecated. |
String |
getExtraAttributes()
Gets the ExtraAttributes. |
String |
getPluginPage()
Gets the PluginPage. |
boolean |
isScriptable()
Gets the Scriptable. |
boolean |
isXmlDeclaration()
Gets the XmlDeclaration. |
void |
removeAddContentListener(SvgContentListener value)
Removes a AddContentListener from the listener list. |
void |
setCulture(Locale value)
Deprecated. |
void |
setExtraAttributes(String value)
Adds custom attributes to the EMBED tag used to display the SVG when the method RenderControl is called. |
void |
setPluginPage(String value)
Used to customize the PluginPage attribute of the EMBED tag used to display the SVG in the source of the generated ASPX page. |
void |
setScriptable(boolean value)
Instructs Chart FX to group the chart elements in the SVG source code. |
void |
setXmlDeclaration(boolean value)
Sets a value indicating to include or discard the XML declaration in the generated svg output. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SvgWriter()
Method Detail |
---|
public void addAddContentListener(SvgContentListener value)
Adds a AddContentListener to the listener list.
value
- The AddContentListener to be added.public SvgContentListener[] getAddContentListeners()
Returns an array of all the AddContentListeners added to this class with addAddContentListeners().
public Locale getCulture()
public String getExtraAttributes()
Gets the ExtraAttributes. For more detail see setExtraAttributes(java.lang.String)
.
public String getPluginPage()
Gets the PluginPage. For more detail see setPluginPage(java.lang.String)
.
public boolean isScriptable()
Gets the Scriptable. For more detail see setScriptable(boolean)
.
public boolean isXmlDeclaration()
Gets the XmlDeclaration. For more detail see setXmlDeclaration(boolean)
.
public void removeAddContentListener(SvgContentListener value)
Removes a AddContentListener from the listener list.
value
- The AddContentListener to be removed.public void setCulture(Locale value)
public void setExtraAttributes(String value)
Adds custom attributes to the EMBED tag used to display the SVG when the method RenderControl is called.
The EMBED tag is generated when an SVG is the selected chart file format. Using this property, you may add custom attributes included in the EMBED tag. For example the following code will produce the below EMBED tag:
SVGWriter SVGwriter = new SVGWriter();
SVGwriter.setExtraAttributes("ExtraAttr=\"XXX\"");
chart1.setOutputWriter(SVGwriter);
<EMBED SRC="/ChartFX6/Temp/CFT0311_01562024D0.svg" NAME="Chart1" TYPE="image/svg-xml" PLUGINSPAGE="http://www.adobe.com/svg/viewer/install/" ExtraAttr="XXX" WIDTH="558px" HEIGHT="317px" style="Z-INDEX=101; LEFT=22px; POSITION=absolute; TOP=19px; " >
setScriptable(boolean)
,
setPluginPage(java.lang.String)
public void setPluginPage(String value)
Used to customize the PluginPage attribute of the EMBED tag used to display the SVG in the source of the generated ASPX page.
The default value of the PluginPage attribute is "http://www.adobe.com/svg/viewer/install/", however, using this property developers may customize this to reflect any URL:
<EMBED SRC="/ChartFX6/Temp/CFT0311_0206201580.svg" NAME="Chart1" TYPE="image/svg-xml" PLUGINSPAGE="http://www.softwarefx.com/svg/svgviewer/" WIDTH="558px" HEIGHT="317px" style="Z-INDEX=101; LEFT=22px; POSITION=absolute; TOP=19px; " >
setExtraAttributes(java.lang.String)
,
setScriptable(boolean)
public void setScriptable(boolean value)
Instructs Chart FX to group the chart elements in the SVG source code.
Grouping the chart elements in the chart will allow for easy post scripting for the developer.
In order to utilize this property, you must include the SVG reference to your web application.
Depending on the different chart types, Chart FX will group the chart elements in different orders.
Chart.setRenderFormat(java.lang.String)
,
Chart
public void setXmlDeclaration(boolean value)
Sets a value indicating to include or discard the XML declaration in the generated svg output.
Here is an example of the XmlDeclaration included in a generated SVG file when this property is set to true:
<?xml version="1.0" encoding="UTF-8"?>
setExtraAttributes(java.lang.String)
,
setScriptable(boolean)
|
http://www.softwarefx.com | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |