Package ca.cgjennings.apps.arkham.deck
Class ViewOptions
- java.lang.Object
-
- ca.cgjennings.apps.arkham.deck.ViewOptions
-
public final class ViewOptions extends java.lang.Object
This class tracks and updates the current state of deck-related view options, such as whether drag handles should be shown.- Since:
- 3.0
- Author:
- Chris Jennings
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isDragHandlePainted()
Returnstrue
if the handles for grabbing and manipulating aspects of page items (such as size, rotation, etc.) are painted.static boolean
isGridPainted()
Returnstrue
if the grid is shown.static boolean
isMarginPainted()
Returnstrue
if the page margins are shown.static void
setDragHandlePainted(boolean drawHandles)
Sets whether the handles for grabbing and manipulating aspects of page items (such as size, rotation, etc.) should be painted.static void
setGridPainted(boolean drawGrid)
Sets whether the page grid is shown.static void
setMarginPainted(boolean drawMargin)
Sets whether the page margins are shown.
-
-
-
Method Detail
-
isDragHandlePainted
public static boolean isDragHandlePainted()
Returnstrue
if the handles for grabbing and manipulating aspects of page items (such as size, rotation, etc.) are painted.- Returns:
true
if the handles should be painted
-
setDragHandlePainted
public static void setDragHandlePainted(boolean drawHandles)
Sets whether the handles for grabbing and manipulating aspects of page items (such as size, rotation, etc.) should be painted.- Parameters:
drawHandles
-true
if the handles should be painted
-
isMarginPainted
public static boolean isMarginPainted()
Returnstrue
if the page margins are shown.- Returns:
true
if the margins should be painted
-
setMarginPainted
public static void setMarginPainted(boolean drawMargin)
Sets whether the page margins are shown.- Parameters:
drawMargin
-true
if the margins should be painted
-
isGridPainted
public static boolean isGridPainted()
Returnstrue
if the grid is shown.- Returns:
true
if the grid should be painted
-
setGridPainted
public static void setGridPainted(boolean drawGrid)
Sets whether the page grid is shown.- Parameters:
drawGrid
-true
if the grid should be painted
-
-