Class ChartConfigUtil
java.lang.Object
net.sf.statcvs.charts.ChartConfigUtil
- Author:
- benoitx
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidconfigureChartBackgroungImage(String chartName, org.jfree.chart.JFreeChart chart) Add a copyright notice on the bottom right part of the chart.static voidconfigureCopyrightNotice(String chartName, org.jfree.chart.JFreeChart chart) Add a copyright notice on the bottom right part of the chart.static voidconfigurePlotImage(String chartName, org.jfree.chart.JFreeChart chart) Add a copyright notice on the bottom right part of the chart.static voidconfigureShapes(String chartName, org.jfree.chart.renderer.xy.XYItemRenderer renderer) configure the shapes for the chart (if renderer is of type XYLineAndShapeRenderer) , tries properties:static voidconfigureStroke(String chartName, org.jfree.chart.renderer.xy.XYItemRenderer renderer, org.jfree.data.xy.XYDataset data) configure the lines for the chart, tries properties:static ColorgetBackgroundColor(String chartName) returns the background color from the config file, tries properties:static DimensiongetDimension(String chartName, Dimension defaultDimension) returns the PLOT color from the config file, tries properties:static ColorgetPlotColor(String chartName) returns the PLOT color from the config file, tries properties:
-
Method Details
-
getBackgroundColor
-
getPlotColor
-
getDimension
-
configureStroke
public static void configureStroke(String chartName, org.jfree.chart.renderer.xy.XYItemRenderer renderer, org.jfree.data.xy.XYDataset data) configure the lines for the chart, tries properties:chart.<chartName>.lineStroke chart.lineStroke
- Parameters:
chartName-
-
configureShapes
public static void configureShapes(String chartName, org.jfree.chart.renderer.xy.XYItemRenderer renderer) configure the shapes for the chart (if renderer is of type XYLineAndShapeRenderer) , tries properties:chart.<chartName>.showShapes chart.filledShapes
- Parameters:
chartName-
-
configureChartBackgroungImage
public static void configureChartBackgroungImage(String chartName, org.jfree.chart.JFreeChart chart) Add a copyright notice on the bottom right part of the chart.chart.<chartName>.chartBackgroundImage.url chart.chartBackgroundImage.url chart.<chartName>.chartBackgroundImage.transparency chart.chartBackgroundImage.transparency (0-1, defaulted to 0.35)
- Parameters:
chartName-chart-
-
configurePlotImage
Add a copyright notice on the bottom right part of the chart.chart.<chartName>.plotImage.url eg file:///C:/project/statcvs/site/images/statcvslogo.gif chart.plotImage.url chart.<chartName>.plotImage.transparency chart.plotImage.transparency (0-1, default to 0.35)
- Parameters:
chartName-chart-
-
configureCopyrightNotice
Add a copyright notice on the bottom right part of the chart.chart.<chartName>.copyright chart.copyright
- Parameters:
chartName-chart-
-