-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a2c650f
commit 9e3bcee
Showing
5 changed files
with
67 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package paintingcanvas.canvas; | ||
|
||
import java.awt.*; | ||
|
||
/** | ||
* A list of options that control the behavior of the canvas | ||
*/ | ||
public class CanvasOptions { | ||
/** | ||
* Whether to automatically add {@link paintingcanvas.drawable.Drawable Drawable}'s | ||
* upon construction / instantiation. | ||
* <p> | ||
* default: {@code true} | ||
*/ | ||
public boolean autoAdd = true; | ||
/** | ||
* Whether to automatically center what's on screen whenever the screen is resized | ||
* <p> | ||
* default: {@code true} | ||
*/ | ||
public boolean autoCenter = true; | ||
/** | ||
* Whether to do antialiasing when drawing shapes | ||
* <p> | ||
* default: {@code true} | ||
*/ | ||
public boolean antiAlias = true; | ||
|
||
/** | ||
* The background color of the canvas | ||
* <p> | ||
* default: {@link Color#WHITE} | ||
*/ | ||
public Color backgroundColor = Color.WHITE; | ||
|
||
public CanvasOptions() {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters