Class Canvas


  • public class Canvas
    extends java.lang.Object
    A Canvas extends an ImmutableImage with functionality for drawing. It is essentially some sugar around using the Graphics2D functionality in AWT.
    • Method Detail

      • getImage

        public ImmutableImage getImage()
        Returns the image that backs this canvas.
      • drawInPlace

        public void drawInPlace​(Drawable... drawables)
      • drawInPlace

        public void drawInPlace​(java.util.Collection<Drawable> drawables)
      • draw

        public Canvas draw​(java.util.Collection<Drawable> drawables)