|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.graphics.charts.ChartConfig
public class ChartConfig
This class reads the configurations file for the charts and acts as a data class for the configurations It parses the configurations file according to a given schema and throws an exception if the parsing failed It also assigns default values to variables that are not mandatory and don't exist in the configs file
Constructor Summary | |
---|---|
ChartConfig(java.net.URL configsPath)
Takes in the path to the configurations file, parses it and holds its values |
Method Summary | |
---|---|
java.awt.Color |
getGenBackgroundColor()
|
java.lang.String |
getGenFontFamily()
|
double |
getGenFontSize()
|
java.lang.String |
getGenFontType()
|
java.lang.String |
getGenRectangleInsets()
|
java.awt.Color |
getPieBaseSectionColor()
|
double |
getPieInteriorGap()
|
double |
getPieLabelGap()
|
java.awt.Color |
getPieShadowColor()
|
java.awt.Color |
getPlotBackgroundColor()
|
double |
getPlotBackgroundOpacity()
|
double |
getPlotForegroundOpacity()
|
protected java.awt.Color |
hexToColor(java.lang.String hexDecimal,
float alpha)
It converts a hexdecimal to a awt.color instance |
boolean |
isGenAntiAliasing()
|
boolean |
isGenBorderVisible()
|
boolean |
isGenTextAntiAlias()
|
boolean |
isLineRenderLines()
|
boolean |
isLineRenderShapes()
|
boolean |
isPieCircular()
|
boolean |
isPlotOutlineVisible()
|
protected void |
parseConfigurations(org.w3c.dom.Element root)
This is the main parsing method. |
protected void |
parseGeneralChartSettings(org.w3c.dom.Element chartElem)
Parses the general settings of the configurations file. |
protected void |
parseLinePlotSettings(org.w3c.dom.Element lineplotElem)
Parses the Line plot settings of the configurations file. |
protected void |
parsePiePlotSettings(org.w3c.dom.Element pieplotElem)
Parses the Pie plot settings of the configurations file. |
protected void |
parsePlotSettings(org.w3c.dom.Element plotElem)
Parses the plot settings of the configurations file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChartConfig(java.net.URL configsPath) throws org.xml.sax.SAXException, java.io.IOException, XMLParsingException
configsPath
- XML file that contains the charts configurations
org.xml.sax.SAXException
java.io.IOException
XMLParsingException
Method Detail |
---|
protected void parseConfigurations(org.w3c.dom.Element root) throws XMLParsingException
root
-
XMLParsingException
protected void parseGeneralChartSettings(org.w3c.dom.Element chartElem) throws XMLParsingException
chartElem
-
XMLParsingException
protected void parsePlotSettings(org.w3c.dom.Element plotElem) throws XMLParsingException
plotElem
-
XMLParsingException
protected void parsePiePlotSettings(org.w3c.dom.Element pieplotElem) throws XMLParsingException
pieplotElem
-
XMLParsingException
protected void parseLinePlotSettings(org.w3c.dom.Element lineplotElem) throws XMLParsingException
lineplotElem
-
XMLParsingException
protected java.awt.Color hexToColor(java.lang.String hexDecimal, float alpha) throws java.lang.NumberFormatException
hexDecimal
- it can start with # or notalpha
- between 0..1
java.lang.NumberFormatException
- if the given hex decimal could not be parsed.public boolean isGenAntiAliasing()
public java.awt.Color getGenBackgroundColor()
public boolean isGenBorderVisible()
public java.lang.String getGenFontFamily()
public double getGenFontSize()
public java.lang.String getGenFontType()
public boolean isPlotOutlineVisible()
public java.lang.String getGenRectangleInsets()
public boolean isGenTextAntiAlias()
public boolean isLineRenderLines()
public boolean isLineRenderShapes()
public java.awt.Color getPieBaseSectionColor()
public boolean isPieCircular()
public double getPieInteriorGap()
public double getPieLabelGap()
public java.awt.Color getPlotBackgroundColor()
public double getPlotBackgroundOpacity()
public double getPlotForegroundOpacity()
public java.awt.Color getPieShadowColor()
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org