Class OrthoLineDef


  • public class OrthoLineDef
    extends Object
    Defines how to generate a set of regularly-spaced, ortho-line elements with given orientation and level.
    Since:
    8.0
    Author:
    mbedward
    • Constructor Detail

      • OrthoLineDef

        public OrthoLineDef​(LineOrientation orientation,
                            int level,
                            double spacing)
        Creates a new ortho-line definition.
        Parameters:
        orientation - line orientation
        level - an integer level (user-defined values) indicating line precedence
        spacing - the spacing between lines in world distance units
      • OrthoLineDef

        public OrthoLineDef​(OrthoLineDef lineDef)
        Creates a copy of an existing line definition.
        Parameters:
        lineDef - the definition to copy
        Throws:
        IllegalArgumentException - if lineDef is null
    • Method Detail

      • getLevel

        public int getLevel()
        Gets the integer level (line precedence).
        Returns:
        the level
      • getOrientation

        public LineOrientation getOrientation()
        Gets the orientation.
        Returns:
        orientation
      • getSpacing

        public double getSpacing()
        Gets the spacing between lines.
        Returns:
        line spacing