public abstract class IlpPolyPoints extends Object implements Cloneable
Subclasses are: IlpPolyline
, where the starting point
and end point usually differ, and IlpPolygon
, which
describes polygons.
Modifier | Constructor and Description |
---|---|
protected |
IlpPolyPoints()
Note that _numsegments can validly be 0.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
applyTransform(IlvTransformer t)
Applies a transform to the points, thereby destructively modifying the
polyline and its segments.
|
abstract Object |
clone()
Creates a copy of this object.
|
abstract ilog.cpl.graphic.views.internal.IlpPolyTwoPolylines |
computeThickLinkShape(double thickness,
double miterlimit)
Returns the two polylines bounding the result of blowing up this
polyline to a given thickness.
|
boolean |
equals(Object other)
Compares two objects.
|
Rectangle |
getBounds()
Deprecated.
This method was renamed to
getBounds2D .
Please use (IlvRect)getBounds2D() instead. |
Rectangle2D |
getBounds2D()
Returns the smallest rectangle covering all points.
|
int |
getClosestSegment(IlvPoint p)
Returns the index of the segment which is closest to a given point.
|
IlvPoint |
getGravity0()
Returns the center of gravity of all points.
|
IlvPoint |
getGravity1()
Returns the center of gravity of all segments.
|
abstract ilog.cpl.graphic.views.internal.IlpPolyPointAndDirection |
getMedian()
Returns the "midpoint" of the polyline, and the direction of the
segment containing it.
|
abstract int |
getNumberOfPoints()
Returns the number of points in the polyline.
|
int |
getNumberOfSegments()
Returns the number of segments in the polyline.
|
IlvPoint |
getPoint(int index)
Returns a specific point (0 <= index < getNumberOfPoints()).
|
IlvPoint[] |
getPoints()
Returns the array of points.
|
IlvPoint[] |
getPointsCloned()
Returns a fresh copy of the array of points.
|
IlpLineSegment |
getSegment(int index)
Returns a specific segment (0 <= index < getNumberOfSegments()).
|
IlpLineSegment[] |
getSegments()
Returns the array of segments.
|
int |
hashCode()
Returns a hash code value for the object.
|
abstract void |
insertPoint(IlvPoint p)
Inserts a point where it fits best.
|
abstract void |
insertPoint(int index,
IlvPoint p)
Inserts a point into a specific segment.
|
abstract void |
movePoint(int index,
IlvPoint p)
Moves a specific point to a new location.
|
abstract void |
removePoint(int index)
Removes a specific point.
|
abstract void |
removeRedundantPoints()
Removes all redundant points (points which are between their neighbours).
|
abstract void |
reverse()
Reverses the order of the points, the order of the segments, and the
directions of the segments.
|
String |
toString()
Converts the object into a human-readable format.
|
protected IlpPolyPoints()
public int getNumberOfSegments()
public IlpLineSegment getSegment(int index)
public IlpLineSegment[] getSegments()
public abstract int getNumberOfPoints()
public IlvPoint getPoint(int index)
public IlvPoint[] getPoints()
public IlvPoint[] getPointsCloned()
public int getClosestSegment(IlvPoint p)
@Deprecated public Rectangle getBounds()
getBounds2D
.
Please use (IlvRect)getBounds2D()
instead.public Rectangle2D getBounds2D()
IlvRect
object.public IlvPoint getGravity0()
public IlvPoint getGravity1()
public abstract ilog.cpl.graphic.views.internal.IlpPolyPointAndDirection getMedian()
public abstract ilog.cpl.graphic.views.internal.IlpPolyTwoPolylines computeThickLinkShape(double thickness, double miterlimit)
miterlimit
- see comments in class IltGraphicUtilpublic abstract void applyTransform(IlvTransformer t)
public abstract void reverse()
public abstract void insertPoint(int index, IlvPoint p)
index
- Satisfies 0 <= index < getNumberOfSegments().p
- The point to be inserted.public abstract void insertPoint(IlvPoint p)
public abstract void movePoint(int index, IlvPoint p)
index
- Satisfies 0 <= index < getNumberOfPoints().p
- The point to be moved.public abstract void removePoint(int index)
index
- Satisfies 0 <= index < getNumberOfPoints().public abstract void removeRedundantPoints()
public boolean equals(Object other)
public int hashCode()
public abstract Object clone()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.