Interface CanvasAWTStub

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.awt.Image produceImage​(int width, int height)
      Images are useful for doing double buffering.
      java.awt.Image produceImage​(java.awt.image.ImageProducer producer)
      getGraphics() on the returned image will fail; in other words the returned image is good for rendering and not so good for drawing onto.
      void requestUpdate()
      This method triggers a call to update(Graphics) on a corresponding AbstractCanvas.
    • Method Detail

      • produceImage

        java.awt.Image produceImage​(int width,
                                    int height)
        Images are useful for doing double buffering. The returned image can be rendered and it can be drawn into by way of getGraphics().
      • produceImage

        java.awt.Image produceImage​(java.awt.image.ImageProducer producer)
        getGraphics() on the returned image will fail; in other words the returned image is good for rendering and not so good for drawing onto.
      • requestUpdate

        void requestUpdate()
                    throws java.lang.IllegalMonitorStateException
        This method triggers a call to update(Graphics) on a corresponding AbstractCanvas. This method blocks until the update() method finishes. By agreement, this method shall only be called by a corresponding AbstractCanvas, and only by the thread invoking AbstractCanvas.run().
        Throws:
        java.lang.IllegalMonitorStateException - if a second thread calls this method.