Class 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()
      Returns true if the handles for grabbing and manipulating aspects of page items (such as size, rotation, etc.) are painted.
      static boolean isGridPainted()
      Returns true if the grid is shown.
      static boolean isMarginPainted()
      Returns true 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.
      • Methods inherited from class java.lang.Object

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

      • isDragHandlePainted

        public static boolean isDragHandlePainted()
        Returns true 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()
        Returns true 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()
        Returns true 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