Class GridLine

    • Constructor Detail

      • GridLine

        public GridLine​(Point point1,
                        Point point2)
        Constructor
        Parameters:
        point1 - first point
        point2 - second point
      • GridLine

        public GridLine​(Point point1,
                        Point point2,
                        GridType gridType)
        Constructor
        Parameters:
        point1 - first point
        point2 - second point
        gridType - line grid type
      • GridLine

        public GridLine​(Line line)
        Constructor
        Parameters:
        line - line to copy
      • GridLine

        public GridLine​(Line line,
                        GridType gridType)
        Constructor
        Parameters:
        line - line to copy
        gridType - line grid type
      • GridLine

        public GridLine​(GridLine line)
        Copy Constructor
        Parameters:
        line - line to copy
    • Method Detail

      • line

        public static GridLine line​(Point point1,
                                    Point point2)
        Create a line
        Parameters:
        point1 - first point
        point2 - second point
        Returns:
        line
      • line

        public static GridLine line​(Point point1,
                                    Point point2,
                                    GridType gridType)
        Create a line
        Parameters:
        point1 - first point
        point2 - second point
        gridType - line grid type
        Returns:
        line
      • line

        public static GridLine line​(Line line)
        Create a line
        Parameters:
        line - line to copy
        Returns:
        line
      • line

        public static GridLine line​(Line line,
                                    GridType gridType)
        Create a line
        Parameters:
        line - line to copy
        gridType - line grid type
        Returns:
        line
      • line

        public static GridLine line​(GridLine line)
        Copy a line
        Parameters:
        line - line to copy
        Returns:
        line
      • getGridType

        public GridType getGridType()
        Get the line grid type
        Returns:
        grid type
      • hasGridType

        public boolean hasGridType()
        Check if the line has a grid type
        Returns:
        true if has grid type
      • setGridType

        public void setGridType​(GridType gridType)
        Set the line grid type
        Parameters:
        gridType - grid type
      • copy

        public GridLine copy()
        Copy the line
        Overrides:
        copy in class Line
        Returns:
        line copy