public class IlvMapSegmentRing extends Object implements IlvMapRingInterface
IlvMapSegmentString
.
The IlvMapSegmentString
should be closed, which means that
its start point should be the same as its end point.
If the IlvMapSegmentString
is not
closed, the assumption is performed that it is closed by an
IlvMapLinearSegment
.Constructor and Description |
---|
IlvMapSegmentRing()
Initializes an instance of the class without its outline.
|
IlvMapSegmentRing(IlvMapSegmentString outline)
Initializes an instance of the class with its outline.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(IlvCoordinate c)
Returns
true if c is contained in the object. |
IlvMapCurve |
getOutline()
Returns the outline of the object.
|
IlvMapSegmentString |
setOutline(IlvMapSegmentString outline)
Sets the outline of the object.
|
public IlvMapSegmentRing()
public IlvMapSegmentRing(IlvMapSegmentString outline)
outline
- The outline.
Since the outline is not copied, the outline should not be modified
after the operation.public IlvMapCurve getOutline()
getOutline
in interface IlvMapRingInterface
IlvMapCurve
object that should not be
modified.public IlvMapSegmentString setOutline(IlvMapSegmentString outline)
outline
- The new outline.
Since the outline is not copied, the outline should not be modified
after being set.public boolean contains(IlvCoordinate c)
true
if c
is contained in the object.contains
in interface IlvMapRingInterface
c
- The point to be checked.true
if the specified point is contained in the object.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.