Package ca.cgjennings.apps.arkham.deck
Class ViewOptions
- java.lang.Object
-
- ca.cgjennings.apps.arkham.deck.ViewOptions
-
public final class ViewOptions extends java.lang.ObjectThis 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 booleanisDragHandlePainted()Returnstrueif the handles for grabbing and manipulating aspects of page items (such as size, rotation, etc.) are painted.static booleanisGridPainted()Returnstrueif the grid is shown.static booleanisMarginPainted()Returnstrueif the page margins are shown.static voidsetDragHandlePainted(boolean drawHandles)Sets whether the handles for grabbing and manipulating aspects of page items (such as size, rotation, etc.) should be painted.static voidsetGridPainted(boolean drawGrid)Sets whether the page grid is shown.static voidsetMarginPainted(boolean drawMargin)Sets whether the page margins are shown.
-
-
-
Method Detail
-
isDragHandlePainted
public static boolean isDragHandlePainted()
Returnstrueif the handles for grabbing and manipulating aspects of page items (such as size, rotation, etc.) are painted.- Returns:
trueif 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-trueif the handles should be painted
-
isMarginPainted
public static boolean isMarginPainted()
Returnstrueif the page margins are shown.- Returns:
trueif the margins should be painted
-
setMarginPainted
public static void setMarginPainted(boolean drawMargin)
Sets whether the page margins are shown.- Parameters:
drawMargin-trueif the margins should be painted
-
isGridPainted
public static boolean isGridPainted()
Returnstrueif the grid is shown.- Returns:
trueif the grid should be painted
-
setGridPainted
public static void setGridPainted(boolean drawGrid)
Sets whether the page grid is shown.- Parameters:
drawGrid-trueif the grid should be painted
-
-