com.droplets.api
Class GraphPrinter
java.lang.Object
|
+--com.droplets.api.IGraph.GraphImpl
|
+--com.droplets.api.GraphPrinter
- All Implemented Interfaces:
- IGraph, IGraph.GraphProxy
- public class GraphPrinter
- extends IGraph.GraphImpl
- implements IGraph, IGraph.GraphProxy
Constructor Summary |
GraphPrinter()
Creates a new GraphPrinter area. |
Method Summary |
void |
generateJpegFile(java.lang.String jpegFile,
java.lang.String specFile,
int width,
int height,
java.lang.String classPath)
|
void |
generateSpecToStream(java.io.OutputStream os)
|
boolean |
getBoolAttribute(java.lang.String name,
boolean defaultValue)
|
java.lang.String |
getStringAttribute(java.lang.String name,
java.lang.String defaultValue)
|
boolean |
isAddedToWindow()
|
com.droplets.api.GraphAnnotation.AnnotationProxy |
makeAnnotationProxy(GraphAnnotation a,
int orientation)
Makes the appropriate PlotProxy class for this graph type. |
com.droplets.api.PlotComponent.PlotProxy |
makePlotProxy(PlotComponent plot,
java.lang.String type)
Makes the appropriate PlotProxy class for this graph type. |
void |
notifyAddAnnotation(GraphAnnotation a)
|
void |
notifyAddPlot(PlotComponent plot)
|
void |
setAddedToWindow(boolean added)
Window uses this to inform the component that it is added to a window |
void |
setBoolAttribute(java.lang.String name,
boolean value,
java.lang.String skinName)
|
void |
setStringAttribute(java.lang.String name,
java.lang.String value,
java.lang.String skinName)
|
Methods inherited from class com.droplets.api.IGraph.GraphImpl |
addAnnotation, addPlot, getLegendHorizontalAlignment, getLegendHorizontalMargin, getLegendVerticalAlignment, getLegendVerticalMargin, getLegendVisible, getXAxisDataType, getXTickLabels, getYAxisDataType, getZoomable, setGraphProxy, setLegendHorizontalPosition, setLegendHorizontalPosition, setLegendVerticalPosition, setLegendVerticalPosition, setLegendVisible, setLegendVisible, setXAxisDataType, setXTickLabels, setXTickLabels, setYAxisDataType, setZoomable, setZoomable |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.droplets.api.IGraph |
addAnnotation, addPlot, getLegendHorizontalAlignment, getLegendHorizontalMargin, getLegendVerticalAlignment, getLegendVerticalMargin, getLegendVisible, getXAxisDataType, getXTickLabels, getYAxisDataType, getZoomable, setLegendHorizontalPosition, setLegendHorizontalPosition, setLegendVerticalPosition, setLegendVerticalPosition, setLegendVisible, setLegendVisible, setXAxisDataType, setXTickLabels, setXTickLabels, setYAxisDataType, setZoomable, setZoomable |
GraphPrinter
public GraphPrinter()
- Creates a new
GraphPrinter
area.
generateSpecToStream
public void generateSpecToStream(java.io.OutputStream os)
generateJpegFile
public void generateJpegFile(java.lang.String jpegFile,
java.lang.String specFile,
int width,
int height,
java.lang.String classPath)
throws java.io.IOException,
java.lang.InterruptedException
isAddedToWindow
public boolean isAddedToWindow()
- Specified by:
isAddedToWindow
in interface IGraph.GraphProxy
setAddedToWindow
public void setAddedToWindow(boolean added)
- Description copied from interface:
IGraph
- Window uses this to inform the component that it is added to a window
- Specified by:
setAddedToWindow
in interface IGraph
- Following copied from interface:
com.droplets.api.IGraph
- Parameters:
isAddedToWindow
- true if the component is in a window
setStringAttribute
public void setStringAttribute(java.lang.String name,
java.lang.String value,
java.lang.String skinName)
- Specified by:
setStringAttribute
in interface IGraph.GraphProxy
getStringAttribute
public java.lang.String getStringAttribute(java.lang.String name,
java.lang.String defaultValue)
- Specified by:
getStringAttribute
in interface IGraph.GraphProxy
setBoolAttribute
public void setBoolAttribute(java.lang.String name,
boolean value,
java.lang.String skinName)
- Specified by:
setBoolAttribute
in interface IGraph.GraphProxy
getBoolAttribute
public boolean getBoolAttribute(java.lang.String name,
boolean defaultValue)
- Specified by:
getBoolAttribute
in interface IGraph.GraphProxy
notifyAddPlot
public void notifyAddPlot(PlotComponent plot)
- Specified by:
notifyAddPlot
in interface IGraph.GraphProxy
notifyAddAnnotation
public void notifyAddAnnotation(GraphAnnotation a)
- Specified by:
notifyAddAnnotation
in interface IGraph.GraphProxy
makePlotProxy
public com.droplets.api.PlotComponent.PlotProxy makePlotProxy(PlotComponent plot,
java.lang.String type)
- Makes the appropriate PlotProxy class for this graph type.
- Specified by:
makePlotProxy
in interface IGraph
- Parameters:
plot
- the plot for which to make a proxytype
- the type of the plot
makeAnnotationProxy
public com.droplets.api.GraphAnnotation.AnnotationProxy makeAnnotationProxy(GraphAnnotation a,
int orientation)
- Description copied from interface:
IGraph
- Makes the appropriate PlotProxy class for this graph type.
- Specified by:
makeAnnotationProxy
in interface IGraph
- Following copied from interface:
com.droplets.api.IGraph
- Parameters:
plot
- the plot for which to make a proxytype
- the type of the plot
Copyright © Droplets, 2001. All Rights Reserved.