|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Graphics2DOutput
A special interface for renderers that allows to replace the Graphics2D.
Several external libraries use to replace the Graphics2D
of AWT in
order to produce a file or on a printer in a given format. However it is not possible to
link such libraries in the gs-core module of GraphStream. To avoid this
problem, this interface defines a plug-in that must implement be able to
yield a Graphics2D
usable instead of the default one.
Method Summary | |
---|---|
Graphics2D |
getGraphics()
The graphics to use instead of the default Graphics2D of AWT. |
void |
outputTo(String outputName)
Output (if needed) the results of the last painting done with the Graphics2D . |
Method Detail |
---|
Graphics2D getGraphics()
Graphics2D
of AWT.
void outputTo(String outputName) throws IOException
Graphics2D
.
outputName
- The name of the output to use, for some renderers it is a file,
for others it is an URL, a string description of the output, etc.
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |