Package paintingcanvas.canvas
Class CanvasOptions
- java.lang.Object
-
- paintingcanvas.canvas.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 shapesboolean
autoAdd
Whether to automatically addDrawable
's upon construction / instantiation.boolean
autoCenter
Whether to automatically center what's on screen whenever the screen is resizedjava.awt.Color
backgroundColor
The background color of the canvas
-
Constructor Summary
Constructors Constructor Description CanvasOptions()
-
-
-
Field Detail
-
autoAdd
public boolean autoAdd
Whether to automatically addDrawable
's upon construction / instantiation.default:
true
-
autoCenter
public boolean autoCenter
Whether to automatically center what's on screen whenever the screen is resizeddefault:
true
-
antiAlias
public boolean antiAlias
Whether to do antialiasing when drawing shapesdefault:
true
-
backgroundColor
public java.awt.Color backgroundColor
The background color of the canvasdefault:
Color.WHITE
-
-