|
LiveGraph data visualisation and analysis framework |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.LiveGraph.plot.GraphExporter
public class GraphExporter
Encapsulates the logic of graph image exports.
LiveGraph (http://www.live-graph.org).
Copyright (c) 2007 by G. Paperin.
File: GraphExporter.java
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following terms and conditions are met:
1. Redistributions of source code must retain the above
acknowledgement of the LiveGraph project and its web-site, the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above acknowledgement of the
LiveGraph project and its web-site, the above copyright notice, this list of conditions
and the following disclaimer in the documentation and/or other materials provided with
the distribution.
3. All advertising materials mentioning features or use of this software or any derived
software must display the following acknowledgement:
This product includes software developed by the LiveGraph project and its
contributors.
(http://www.live-graph.org)
4. All advertising materials distributed in form of HTML pages or any other technology
permitting active hyper-links that mention features or use of this software or any
derived software must display the acknowledgment specified in condition 3 of this
agreement, and in addition, include a visible and working hyper-link to the LiveGraph
homepage (http://www.live-graph.org).
THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS, CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Field Summary | |
---|---|
private ExportImageDialog |
dialog
Export settings dialog. |
private Plotter |
plotter
Graph plotter. |
Constructor Summary | |
---|---|
GraphExporter(Plotter plotter)
Creates a new exporter. |
Method Summary | |
---|---|
void |
disposeInternalGUI()
Disposes of all GUI objects encapsulated in this exporter. |
void |
doExportGraph(int imgWidth,
int imgHeight,
java.lang.String imgMIMEType,
java.io.File imgFile)
Plots the graph and exports the image to a file. |
void |
exportGraph()
Initiates an export by showing the options dialog. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Plotter plotter
private ExportImageDialog dialog
Constructor Detail |
---|
public GraphExporter(Plotter plotter)
plotter
- Tghe plotter to use with this exporter.Method Detail |
---|
public void exportGraph()
public void doExportGraph(int imgWidth, int imgHeight, java.lang.String imgMIMEType, java.io.File imgFile)
imgWidth
- Width of the exported image in pixel.imgHeight
- Height of the exported image in pixel.imgMIMEType
- MIME type of the exported image.imgFile
- File of the exported image.public void disposeInternalGUI()
|
LiveGraph data visualisation and analysis framework |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |