All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.las.ogdi.OGDIText

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

public class OGDIText
extends OGDIFeature
The Text class defines an object composed of a single instance of a Coordinate object but also holding a label.

Version:
1.0
Author:
Las Inc.

Constructor Index

 o OGDIText(OGDICoordinate, String)
Creates a Text instance.
 o OGDIText(OGDICoordinate, String, OGDIFeatureAttributes)
Creates a Text instance.

Method Index

 o getCoord()
Gets the coordinate of a Text.
 o getLabel()
Gets the label of a Text.
 o toString()
Gets the complete text description.

Constructors

 o OGDIText
 public OGDIText(OGDICoordinate c,
                 String desc)
Creates a Text instance.

Parameters:
c - the coordinate in the current coordinate system
desc - the human-readable label
Returns:
no return
Throws: IllegalArgumentException
if text is badly formatted (coordinate or label is null)
 o OGDIText
 public OGDIText(OGDICoordinate c,
                 String desc,
                 OGDIFeatureAttributes info)
Creates a Text instance.

Parameters:
c - the coordinate in the current coordinate system
desc - the human-readable label
info - the object information
Returns:
no return
Throws: IllegalArgumentException
if text is badly formatted (coordinate or label is null)

Methods

 o getLabel
 public String getLabel()
Gets the label of a Text.

Parameters:
no - parameter
Returns:
a string containing the label
Throws: no
exception
 o getCoord
 public OGDICoordinate getCoord()
Gets the coordinate of a Text.

Parameters:
no - parameter
Returns:
a Coordinate object
Throws: no
exception
 o toString
 public String toString()
Gets the complete text description.

Parameters:
no - parameter
Returns:
the text object (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