public class Shape extends Bean implements Geometrical<com.vividsolutions.jts.geom.Geometry>
| Modifier and Type | Class and Description |
|---|---|
static class |
Shape.Builder
Shape builder class
usage: Shape shape = new Shape.Builder().setName("someName").build();
|
static class |
Shape.ShapeType
Type of a shape object
Gives an indication about what kind of shape it is, what the purpose is
and where it needs to be stored eventually.
|
Bean.BeanStateBEAN_FLAVOR, currentState, PROP_NAME| Constructor and Description |
|---|
Shape() |
Shape(com.vividsolutions.jts.geom.Geometry geometry)
Construct a shape object based on a WKT string
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
com.vividsolutions.jts.geom.Point |
getCentroid() |
com.vividsolutions.jts.geom.Geometry |
getGeometry() |
long |
getId() |
String |
getName() |
com.vividsolutions.jts.geom.Geometry |
getRenderObject(com.vividsolutions.jts.geom.Envelope envelope) |
String |
getTooltipText() |
Shape.ShapeType |
getType()
Returns the shape type as ShapeType (enum-value) A shape can for example be a Field, or a Line, etc.
|
int |
hashCode() |
void |
setName(String name) |
void |
setType(Shape.ShapeType type)
Set the shape type as ShapeType (enum-value) A shape can for example be a Field, or a Line, etc.
|
addPropertyChangeListener, addPropertyChangeListener, addUndoableEditListener, copyPropertyChange, fireUndoableEvent, getPropertyChangeSupport, removePropertyChangeListener, removePropertyChangeListener, removeUndoableEditListenerpublic Shape()
public Shape(com.vividsolutions.jts.geom.Geometry geometry)
Geometry - com.vividsolutions.jts.io.ParseExceptionpublic String getName()
public void setName(String name)
public com.vividsolutions.jts.geom.Geometry getGeometry()
getGeometry in interface Geometrical<com.vividsolutions.jts.geom.Geometry>LayerObjectpublic String getTooltipText()
getTooltipText in interface Geographical<com.vividsolutions.jts.geom.Geometry>LayerObjectpublic long getId()
getId in interface Geographical<com.vividsolutions.jts.geom.Geometry>LayerObjectpublic Shape.ShapeType getType()
public void setType(Shape.ShapeType type)
type - Set the type of this Shapepublic com.vividsolutions.jts.geom.Geometry getRenderObject(com.vividsolutions.jts.geom.Envelope envelope)
getRenderObject in interface Geographical<com.vividsolutions.jts.geom.Geometry>public com.vividsolutions.jts.geom.Point getCentroid()
getCentroid in interface Geographical<com.vividsolutions.jts.geom.Geometry>Copyright © 2011. All Rights Reserved.