|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.java4less.rchart.gc.ChartImage
Wrapper for the AWT or SWT Image class. Use GraphicsProvider.getImage() to create an instance of this class. This class allows rchart to work independtly from AWT and SWT.
| Constructor Summary | |
ChartImage()
|
|
| Method Summary | |
void |
dispose()
dispose image |
ChartGraphics |
getGraphics()
get graphic context of the image |
int |
getHeight()
get height of the image |
int |
getWidth()
get width of the image |
boolean |
saveToFile(java.lang.String sFormat,
java.lang.String file)
saves image to a file |
boolean |
saveToStream(java.lang.String sFormat,
java.io.OutputStream os)
saves image to an output stream |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ChartImage()
| Method Detail |
public ChartGraphics getGraphics()
public int getWidth()
public int getHeight()
public boolean saveToFile(java.lang.String sFormat,
java.lang.String file)
throws java.lang.Exception
sFormat - GIF,PNG or JPEGfile -
java.lang.Exception
public boolean saveToStream(java.lang.String sFormat,
java.io.OutputStream os)
sFormat - GIF,PNG or JPEG
public void dispose()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||