bsh.util

Class BshCanvas

public class BshCanvas extends JComponent

Scriptable Canvas with buffered graphics. Provides a Component that: 1) delegates calls to paint() to a bsh method called paint() in a specific NameSpace. 2) provides a simple buffered image maintained by built in paint() that is useful for simple immediate procedural rendering from scripts...
Constructor Summary
BshCanvas()
BshCanvas(This ths)
Method Summary
GraphicsgetBufferedGraphics()
Get a buffered (persistent) image for drawing on this component
voidpaintComponent(Graphics g)
voidsetBounds(int x, int y, int width, int height)

Constructor Detail

BshCanvas

public BshCanvas()

BshCanvas

public BshCanvas(This ths)

Method Detail

getBufferedGraphics

public Graphics getBufferedGraphics()
Get a buffered (persistent) image for drawing on this component

paintComponent

public void paintComponent(Graphics g)

setBounds

public void setBounds(int x, int y, int width, int height)
B) 2000 pat@pat.net :-)