|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.refractions.udig.tools.edit.support.EditGeom
public class EditGeom
Models a geometry as required by the PixelCoordMap.
Constructor Summary | |
---|---|
EditGeom(EditBlackboard owner,
java.lang.String featureId2)
It is recommended to use constructor with bounds. |
|
EditGeom(EditBlackboard owner,
java.lang.String featureId,
Envelope featureBounds)
|
|
EditGeom(EditGeom geom)
|
Method Summary | |
---|---|
void |
assertValid()
|
Selection |
createSelection()
|
ClosestEdge |
getClosestEdge(Point point,
boolean treatUnknownAsPolygon)
gets the closest edge in the geometry to the point. |
EditBlackboard |
getEditBlackboard()
|
Envelope |
getFeatureEnvelope()
Returns an old bounding box of the feature whose geometry is wrapped by EditGeom before any editing. |
java.util.concurrent.atomic.AtomicReference<java.lang.String> |
getFeatureIDRef()
|
java.util.List<PrimitiveShape> |
getHoles()
User is expected to add holes as needed. |
ShapeType |
getShapeType()
|
PrimitiveShape |
getShell()
|
boolean |
hasVertex(Point point)
|
boolean |
isChanged()
Indicates that this geometry has been modified since it has been in the blackboard. |
java.util.Iterator<PrimitiveShape> |
iterator()
|
PrimitiveShape |
newHole()
|
Point |
overVertex(Point point,
int radius)
|
void |
setChanged(boolean changed)
This method signals the in-memory state of EditGeom with respect to the actual feature in datastore. |
void |
setShapeType(ShapeType shapeType)
This is a thread-safe method |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EditGeom(EditBlackboard owner, java.lang.String featureId2)
owner
- featureId2
- public EditGeom(EditBlackboard owner, java.lang.String featureId, Envelope featureBounds)
owner
- featureId
- featureBounds
- public EditGeom(EditGeom geom)
Method Detail |
---|
public PrimitiveShape getShell()
public java.util.List<PrimitiveShape> getHoles()
public java.lang.String toString()
toString
in class java.lang.Object
public PrimitiveShape newHole()
public java.util.concurrent.atomic.AtomicReference<java.lang.String> getFeatureIDRef()
public ShapeType getShapeType()
public void setShapeType(ShapeType shapeType)
type
- The new shape type.public java.util.Iterator<PrimitiveShape> iterator()
iterator
in interface java.lang.Iterable<PrimitiveShape>
public EditBlackboard getEditBlackboard()
public Envelope getFeatureEnvelope()
public boolean isChanged()
public void setChanged(boolean changed)
true
value means that the geometry is changed but not up-to-date
with datastore's feature geometry.
false
value means that the geometry is up-to-date
with datastore's feature geometry.
changed
- public Selection createSelection()
public void assertValid()
public boolean hasVertex(Point point)
public ClosestEdge getClosestEdge(Point point, boolean treatUnknownAsPolygon)
point
- reference pointtreatUnknownAsPolygon
- declares whether to treat geometries of type UNKNOWN as a polygon
public Point overVertex(Point point, int radius)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |