Package org.geotools.grid.ortholine
Class OrthoLine
- Object
- 
- OrthoLine
 
- 
- All Implemented Interfaces:
- GridElement,- LineElement
 
 public class OrthoLine extends Object implements LineElement An ortho-line grid element.- Since:
- 8.0
- Author:
- mbedward
 
- 
- 
Constructor SummaryConstructors Constructor Description OrthoLine(ReferencedEnvelope gridBounds, LineOrientation orientation, double ordinate, int level)Creates a new ortho-line element.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ReferencedEnvelopegetBounds()Gets the bounds of this grid element.intgetLevel()Gets the level (precedence) associated with this line.LineOrientationgetOrientation()Gets the orientation of this line.Coordinate[]getVertices()Gets the vertices of this grid element.GeometrytoDenseGeometry(double maxSpacing)Creates a new, densifiedGeometryfrom this grid element.GeometrytoGeometry()Creates a newGeometryfrom this grid element.
 
- 
- 
- 
Constructor Detail- 
OrthoLinepublic OrthoLine(ReferencedEnvelope gridBounds, LineOrientation orientation, double ordinate, int level) Creates a new ortho-line element. The line position is specified by a single ordinate which will be its X-ordinate if vertical, or its Y-ordinate if horizontal.- Parameters:
- gridBounds- bounds of the area containing this line
- orientation- line orientation
- ordinate- position of the line
- level- integer level associated with this line
 
 
- 
 - 
Method Detail- 
getBoundspublic ReferencedEnvelope getBounds() Gets the bounds of this grid element. Note that this will be a degenerate rectangle with either 0 width, if the line is vertical, or zero height, if horizontal.- Specified by:
- getBoundsin interface- GridElement
- Returns:
- the bounding rectangle
 
 - 
getVerticespublic Coordinate[] getVertices() Gets the vertices of this grid element. These will be the end-points of the line element.- Specified by:
- getVerticesin interface- GridElement
- Returns:
- the vertices
 
 - 
getOrientationpublic LineOrientation getOrientation() Gets the orientation of this line.- Returns:
- the orientation
 
 - 
getLevelpublic int getLevel() Gets the level (precedence) associated with this line.- Returns:
- the level
 
 - 
toGeometrypublic Geometry toGeometry() Description copied from interface:GridElementCreates a newGeometryfrom this grid element.- Specified by:
- toGeometryin interface- GridElement
- Returns:
- a new Geometry
 
 - 
toDenseGeometrypublic Geometry toDenseGeometry(double maxSpacing) Description copied from interface:GridElementCreates a new, densifiedGeometryfrom this grid element.- Specified by:
- toDenseGeometryin interface- GridElement
- Parameters:
- maxSpacing- the maximum distance between adjacent vertices
- Returns:
- a new Geometry
 
 
- 
 
-