org.geotools.grid.ortholine
Class OrthoLineDef

Object
  extended by 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
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
 int getLevel()
          Gets the integer level (line precedence).
 LineOrientation getOrientation()
          Gets the orientation.
 double getSpacing()
          Gets the spacing between lines.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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


Copyright © 1996-2014 Geotools. All Rights Reserved.