|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.maps.IlvMapGeometry
ilog.views.maps.geometry.IlvMapArea
ilog.views.maps.geometry.IlvMapPolygon
public class IlvMapPolygon
This class defines a Polygon.
A polygon is an area that can contain holes. It is defined by an
exterior ring and by interior rings that describe the internal holes
of the polygon. The interior rings should not intersect. However, this
class does not perform automatic consistency checking.
The instances of this class can be
rendered by an IlvDefaultFeatureRenderer or by an
IlvDefaultAreaRenderer.
| Constructor Summary | |
|---|---|
IlvMapPolygon(IlvMapRingInterface exteriorRing)
Constructs a polygon with its exterior ring. |
|
| Method Summary | |
|---|---|
void |
addInteriorRing(IlvMapRingInterface ring)
Adds an interior ring to the polygon. |
boolean |
contains(IlvCoordinate c)
Returns true if c is contained in the object. |
Rectangle2D |
getBounds(Rectangle2D result)
Returns the bounds of this IlvMapGeometry |
IlvMapRingInterface |
getExteriorRing()
Returns the exterior ring of the polygon. |
IlvMapRingInterface |
getInteriorRing(int index)
Returns interior ring at the specified index. |
int |
getInteriorRingCount()
Returns the number of interior rings. |
IlvMapCurve |
getOutline()
Returns the outline of this polygon. |
IlvMapRingInterface |
removeInteriorRing(IlvMapRingInterface ring)
Removes the specified interior ring from the list and returns it. |
void |
removeInteriorRings()
Removes all the interior rings of the polygon. |
IlvMapRingInterface |
setExteriorRing(IlvMapRingInterface exteriorRing)
Sets the exterior ring of the polygon. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvMapPolygon(IlvMapRingInterface exteriorRing)
exteriorRing - The exterior ring. exteriorRing should not
be null. Since the ring is not copied, the ring should not be modified
after this operation.| Method Detail |
|---|
public IlvMapRingInterface getExteriorRing()
public IlvMapRingInterface setExteriorRing(IlvMapRingInterface exteriorRing)
exteriorRing - The exterior ring. Since the ring is not copied,
the ring should not be modified after being set. The value
should not be null.
public int getInteriorRingCount()
public void removeInteriorRings()
public IlvMapRingInterface removeInteriorRing(IlvMapRingInterface ring)
ring - The ring to remove.
null if ring
is not an interior ring of the polygon.public void addInteriorRing(IlvMapRingInterface ring)
ring - The interior ring to be added.public IlvMapRingInterface getInteriorRing(int index)
index - The index of the ring. index should be between
0 and getInteriorRingCount() - 1.
IlvMapRingInterface object at index
index.public IlvMapCurve getOutline()
IlvMapPolygon changes.
getOutline in class IlvMapAreaIlvCurve object that should not be
modified.public boolean contains(IlvCoordinate c)
true if c is contained in the object.
contains in class IlvMapAreac - The point to be checked.
true if c is contained
in the object.public Rectangle2D getBounds(Rectangle2D result)
IlvMapGeometry
getBounds in class IlvMapGeometry
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||