Package org.geotools.grid.ortholine
Class OrthoLineDef
Object
OrthoLineDef
Defines how to generate a set of regularly-spaced, ortho-line elements with given orientation and level.
- Since:
- 8.0
- Author:
- mbedward
-
Constructor Summary
ConstructorsConstructorDescriptionOrthoLineDef(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
Modifier and TypeMethodDescriptionintgetLevel()Gets the integer level (line precedence).Gets the orientation.doubleGets the spacing between lines.
-
Constructor Details
-
OrthoLineDef
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
Creates a copy of an existing line definition.- Parameters:
lineDef- the definition to copy- Throws:
IllegalArgumentException- iflineDefisnull
-
-
Method Details
-
getLevel
public int getLevel()Gets the integer level (line precedence).- Returns:
- the level
-
getOrientation
Gets the orientation.- Returns:
- orientation
-
getSpacing
public double getSpacing()Gets the spacing between lines.- Returns:
- line spacing
-