Interface G2DTarget

  • All Superinterfaces:
    RenderTarget

    public interface G2DTarget
    extends RenderTarget
    Rendering target to Java2d.

    Users should usegetGraphics() method for drawing.

    Author:
    Mathieu Bastian
    • Method Detail

      • getGraphics

        Graphics2D getGraphics()
        Returns the current graphics object. Use this method to draw to the canvas.
        Returns:
        the current graphics to draw to
      • getImage

        Image getImage()
      • getWidth

        int getWidth()
      • getHeight

        int getHeight()
      • resize

        void resize​(int width,
                    int height)
      • setMoving

        void setMoving​(boolean moving)
      • getTranslate

        Vector getTranslate()
      • getScaling

        float getScaling()
      • setScaling

        void setScaling​(float scaling)
      • reset

        void reset()
      • refresh

        void refresh()
        Redraw the Processing canvas