Class Grid

  • All Implemented Interfaces:
    Shapeable

    public class Grid
    extends java.lang.Object
    implements Shapeable
    A visual grid to set the scaling in perspective. Jumps to scale between a min and max rendering distance.
    • Constructor Summary

      Constructors 
      Constructor Description
      Grid()  
      Grid​(boolean horizontalVisible, boolean verticalVisible)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isHorizontalVisible()
      Whether or not horizontal grid lines are rendered.
      boolean isVerticalVisible()
      Whether or not vertical grid lines are rendered.
      void setHorizontalVisible​(boolean horizontalVisible)
      Whether or not horizontal grid lines are rendered.
      void setVerticalVisible​(boolean verticalVisible)
      Whether or not vertical grid lines are rendered.
      java.awt.Shape toShape​(AdvancedShapeWriter shapeWriter)
      Get a shape of the grid.
      • Methods inherited from class java.lang.Object

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

      • Grid

        public Grid​(boolean horizontalVisible,
                    boolean verticalVisible)
      • Grid

        public Grid()
    • Method Detail

      • toShape

        public java.awt.Shape toShape​(AdvancedShapeWriter shapeWriter)
        Get a shape of the grid.
        Specified by:
        toShape in interface Shapeable
        Parameters:
        shapeWriter - shape writer holding information for boundary and scaling
        Returns:
        shape from grid
      • isHorizontalVisible

        public boolean isHorizontalVisible()
        Whether or not horizontal grid lines are rendered.
      • setHorizontalVisible

        public void setHorizontalVisible​(boolean horizontalVisible)
        Whether or not horizontal grid lines are rendered.
      • isVerticalVisible

        public boolean isVerticalVisible()
        Whether or not vertical grid lines are rendered.
      • setVerticalVisible

        public void setVerticalVisible​(boolean verticalVisible)
        Whether or not vertical grid lines are rendered.