ShapeType class

Not much but a type safe enumeration of file types as ints and names. The descriptions can easily be tied to a ResourceBundle if someone wants to do that.

@author Ian Schneider

Properties

hashCode int
The hash code for this object.
no setterinherited
id int
The integer id of this ShapeType.
final
name String
The human-readable name for this ShapeType.
Could easily use ResourceBundle for internationialization.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getShapeHandler(GeometryFactory gf) ShapeHandler?
Each ShapeType corresponds to a handler. In the future this should probably go else where to allow different handlers, or something...
isLineType() bool
isMultiPoint() bool
Is this a multipoint shape? Hint- all shapes are multipoint except NULL, UNDEFINED, and the POINTs.
isMultiPointType() bool
isPointType() bool
isPolygonType() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
Get the name of this ShapeType.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

forID(int id) ShapeType
Determine the ShapeType for the id.

Constants

ARC → const ShapeType
Represents an Arc shape (id = 3).
ARCM → const ShapeType
Represents an ArcM shape (id = 23).
ARCZ → const ShapeType
Represents an ArcZ shape (id = 13).
MULTIPOINT → const ShapeType
Represents a MultiPoint shape (id = 8).
MULTIPOINTM → const ShapeType
Represents a MultiPointM shape (id = 28).
MULTIPOINTZ → const ShapeType
Represents a MultiPointZ shape (id = 18).
NULL → const ShapeType
Represents a Null shape (id = 0).
POINT → const ShapeType
Represents a Point shape (id = 1).
POINTM → const ShapeType
Represents a PointM shape (id = 21).
POINTZ → const ShapeType
Represents a PointZ shape (id = 11).
POLYGON → const ShapeType
Represents a Polygon shape (id = 5).
POLYGONM → const ShapeType
Represents a PolygonM shape (id = 25).
POLYGONZ → const ShapeType
Represents a PolygonZ shape (id = 15).
UNDEFINED → const ShapeType
Represents an Undefined shape (id = -1).