程序包 bsh.util

类 BshCanvas

所有已实现的接口:
ImageObserver, MenuContainer, Serializable

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...
另请参阅:
  • 构造器详细资料

    • BshCanvas

      public BshCanvas()
    • BshCanvas

      public BshCanvas(This ths)
  • 方法详细资料

    • paintComponent

      public void paintComponent(Graphics g)
      覆盖:
      paintComponent 在类中 JComponent
    • getBufferedGraphics

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

      public void setBounds(int x, int y, int width, int height)
      覆盖:
      setBounds 在类中 Component