All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.las.ogdi.OGDILine

java.lang.Object
   |
   +----com.las.ogdi.OGDIFeature
           |
           +----com.las.ogdi.OGDILine

public class OGDILine
extends OGDIFeature
The Line class defines objects which holds an array of Coordinate objects homogenous in direction.

Version:
1.0
Author:
Las Inc.

Constructor Index

 o OGDILine(OGDICoordinate[])
Creates a Line instance with an array of coordinates.
 o OGDILine(OGDICoordinate[], OGDIFeatureAttributes)
Creates a Line instance with an array of coordinates and object information.

Method Index

 o getCoords()
Gets the coordinates of a Line.
 o toString()
Gets the complete line description.

Constructors

 o OGDILine
 public OGDILine(OGDICoordinate c[])
Creates a Line instance with an array of coordinates.

Parameters:
c - the line of coordinates in the current coordinate system
Returns:
no return
Throws: IllegalArgumentException
if line is badly formatted (has less than 2 points)
 o OGDILine
 public OGDILine(OGDICoordinate c[],
                 OGDIFeatureAttributes info)
Creates a Line instance with an array of coordinates and object information.

Parameters:
c - the line of coordinates in the current coordinate system
info - the object information
Returns:
no return
Throws: IllegalArgumentException
if line is badly formatted (has less than 2 points)

Methods

 o getCoords
 public OGDICoordinate[] getCoords()
Gets the coordinates of a Line.

Parameters:
no - parameter
Returns:
an array of Coordinate objects
Throws: no
exception
 o toString
 public String toString()
Gets the complete line description.

Parameters:
no - parameter
Returns:
the Line's coordinates (and optionally its attributes) as a string
Throws: no
exception
Overrides:
toString in class OGDIFeature
See Also:
toString, toString

All Packages  Class Hierarchy  This Package  Previous  Next  Index