Class CanvasOptions


  • public class CanvasOptions
    extends java.lang.Object
    A list of options that control the behavior of the canvas
    • Field Summary

      Fields 
      Modifier and Type Field Description
      boolean antiAlias
      Whether to do antialiasing when drawing shapes
      boolean autoAdd
      Whether to automatically add Drawable's upon construction / instantiation.
      boolean autoCenter
      Whether to automatically center what's on screen whenever the screen is resized
      java.awt.Color backgroundColor
      The background color of the canvas
    • Constructor Summary

      Constructors 
      Constructor Description
      CanvasOptions()  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • autoAdd

        public boolean autoAdd
        Whether to automatically add Drawable's upon construction / instantiation.

        default: true

      • autoCenter

        public boolean autoCenter
        Whether to automatically center what's on screen whenever the screen is resized

        default: true

      • antiAlias

        public boolean antiAlias
        Whether to do antialiasing when drawing shapes

        default: true

      • backgroundColor

        public java.awt.Color backgroundColor
        The background color of the canvas

        default: Color.WHITE

    • Constructor Detail

      • CanvasOptions

        public CanvasOptions()