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


hashCode int
The hash code for this object. [...]
read-only, inherited
id int
The integer id of this ShapeType.
name String
The human-readable name for this ShapeType.
Could easily use ResourceBundle for internationialization.
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


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 non-existent method or property is accessed. [...]
toString() String
Get the name of this ShapeType. [...]


operator ==(Object other) bool
The equality operator. [...]

Static Methods

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


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