public class IlvMapPolygon extends IlvMapArea
IlvDefaultFeatureRenderer
or by an
IlvDefaultAreaRenderer
.Constructor and Description |
---|
IlvMapPolygon(IlvMapRingInterface exteriorRing)
Constructs a polygon with its exterior ring.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.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 IlvMapArea
IlvCurve
object that should not be
modified.public boolean contains(IlvCoordinate c)
true
if c
is contained in the object.contains
in class IlvMapArea
c
- The point to be checked.true
if c
is contained
in the object.public Rectangle2D getBounds(Rectangle2D result)
IlvMapGeometry
getBounds
in class IlvMapGeometry
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.