|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GDContainer
GDContainer
is the minimal interface that has to be implemented by classes that are used as back-ends for JavaGD. The interface feeds graphics objects to the instance which are then free to use them for any purpose such as display or printing.
Method Summary | |
---|---|
void |
add(org.rosuda.javaGD.GDObject o)
add a new plot object to the list |
void |
closeDisplay()
close the display associated with this container |
int |
getDeviceNumber()
retrieve the current device number |
java.awt.Graphics |
getGraphics()
retrieve graphics if this container is backed by some Graphics object. |
org.rosuda.javaGD.GDState |
getGState()
retrieve graphics state |
java.awt.Dimension |
getSize()
retrieve the size of the container |
boolean |
prepareLocator(LocatorSync ls)
this method is called to notify the contained that a locator request is pending; the container must either return false and ignore the ls parameter *or* return true and call @link{LocatorSync.triggerAction} method at some point in the future (which may well be after returning from this method) |
void |
reset()
reset the plot- remove all objects |
void |
setDeviceNumber(int dn)
set the device number of this container |
void |
syncDisplay(boolean finish)
synchronize display with the graphics objects |
Method Detail |
---|
void add(org.rosuda.javaGD.GDObject o)
o
- plot objectvoid reset()
org.rosuda.javaGD.GDState getGState()
java.awt.Graphics getGraphics()
Graphics
object.
null
if this container is not associated with anyboolean prepareLocator(LocatorSync ls)
false
and ignore the ls
parameter *or* return true
and call @link{LocatorSync.triggerAction} method at some point in the future (which may well be after returning from this method)
ls
- locator synchronization objectvoid syncDisplay(boolean finish)
finish
- flag denoting whether the synchronization is desired or not (true
for a finished batch, false
when a batch starts)void setDeviceNumber(int dn)
dn
- device numbervoid closeDisplay()
int getDeviceNumber()
java.awt.Dimension getSize()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |