Package org.geotools.grid.ortholine
Class OrthoLineDef
- Object
-
- 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 Summary
Constructors Constructor Description OrthoLineDef(LineOrientation orientation, int level, double spacing)Creates a new ortho-line definition.OrthoLineDef(OrthoLineDef lineDef)Creates a copy of an existing line definition.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetLevel()Gets the integer level (line precedence).LineOrientationgetOrientation()Gets the orientation.doublegetSpacing()Gets the spacing between lines.
-
-
-
Constructor Detail
-
OrthoLineDef
public OrthoLineDef(LineOrientation orientation, int level, double spacing)
Creates a new ortho-line definition.- Parameters:
orientation- line orientationlevel- an integer level (user-defined values) indicating line precedencespacing- 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- iflineDefisnull
-
-
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
-
-