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.
-
OGDIText(OGDICoordinate, String)
- Creates a Text instance.
-
OGDIText(OGDICoordinate, String, OGDIFeatureAttributes)
- Creates a Text instance.
-
getCoord()
- Gets the coordinate of a Text.
-
getLabel()
- Gets the label of a Text.
-
toString()
- Gets the complete text description.
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)
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)
getLabel
public String getLabel()
- Gets the label of a Text.
- Parameters:
- no - parameter
- Returns:
- a string containing the label
- Throws: no
- exception
getCoord
public OGDICoordinate getCoord()
- Gets the coordinate of a Text.
- Parameters:
- no - parameter
- Returns:
- a Coordinate object
- Throws: no
- exception
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