edu.northwestern.at.utils.plots
Class SaveableAxisChart
java.lang.Object
org.krysalis.jcharts.Chart
org.krysalis.jcharts.axisChart.AxisChart
edu.northwestern.at.utils.plots.SaveableAxisChart
- All Implemented Interfaces:
- SaveToFile, java.io.Serializable, org.krysalis.jcharts.test.HTMLChartTestable
public class SaveableAxisChart
- extends org.krysalis.jcharts.axisChart.AxisChart
- implements SaveToFile
Axis chart which can save itself to a file.
- See Also:
- Serialized Form
Fields inherited from class org.krysalis.jcharts.axisChart.AxisChart |
axisProperties, xAxis, yAxis |
Constructor Summary |
SaveableAxisChart(org.krysalis.jcharts.chartData.interfaces.IAxisDataSeries iAxisDataSeries,
org.krysalis.jcharts.properties.ChartProperties chartProperties,
org.krysalis.jcharts.properties.AxisProperties axisProperties,
org.krysalis.jcharts.properties.LegendProperties legendProperties,
int pixelWidth,
int pixelHeight)
Create SaveableAxisChart. |
Method Summary |
void |
saveToFile(java.lang.String fileName)
Save chart to a file. |
void |
saveToFile(java.awt.Window parentWindow)
Save chart to a file. |
Methods inherited from class org.krysalis.jcharts.axisChart.AxisChart |
createAxisChartDataProcessor, deriveAxisValues, getAxisProperties, getIAxisDataSeries, getXAxis, getYAxis, overlayCharts, renderChart, setupAxis, setupDataAxisProperties, toHTML |
Methods inherited from class org.krysalis.jcharts.Chart |
getBufferedImage, getChartProperties, getGenerateImageMapFlag, getGraphics2D, getImageHeight, getImageMap, getImageWidth, getLegend, hasLegend, render, renderChartTitle, renderWithImageMap, setGraphics2D, setImageMap |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SaveableAxisChart
public SaveableAxisChart(org.krysalis.jcharts.chartData.interfaces.IAxisDataSeries iAxisDataSeries,
org.krysalis.jcharts.properties.ChartProperties chartProperties,
org.krysalis.jcharts.properties.AxisProperties axisProperties,
org.krysalis.jcharts.properties.LegendProperties legendProperties,
int pixelWidth,
int pixelHeight)
- Create SaveableAxisChart. Constructor same as AxisChart.
- Parameters:
iAxisDataSeries
- Data series.chartProperties
- Chart properties.axisProperties
- Axis properties.legendProperties
- Legend properties.pixelWidth
- Width of chart in pixels.pixelHeight
- Height of chart in pixels.
saveToFile
public void saveToFile(java.lang.String fileName)
- Save chart to a file.
- Specified by:
saveToFile
in interface SaveToFile
- Parameters:
fileName
- Name of file to which to save chart.
saveToFile
public void saveToFile(java.awt.Window parentWindow)
- Save chart to a file.
- Specified by:
saveToFile
in interface SaveToFile
- Parameters:
parentWindow
- Parent window for file dialog.
Runs a file dialog to get the name of the file to which to
save the chart.