Modifier and Type | Method and Description |
---|---|
boolean |
contains(float x,
float y)
Should tests whether the given point is contained within the feature.
|
void |
draw(Geographic transformer)
Should draw the feature in the parent sketch.
|
int |
getNumVertices()
Should report the number of vertices that make up the feature definition.
|
FeatureType |
getType()
Should report the type of feature.
|
void |
setRenderer(Drawable renderer)
Should set the renderer to be used for drawing this feature.
|
FeatureType getType()
void draw(Geographic transformer)
transformer
- Class that will transform between geographic and screen coordinates.int getNumVertices()
boolean contains(float x, float y)
x
- x coordinate in geographic coordinates.y
- y coordinate in geographic coordinates.void setRenderer(Drawable renderer)
renderer
- New renderer to use or null if default rendering is to be used.