|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.cpl.graphic.views.IlpPolyPoints
public abstract class IlpPolyPoints
An instance of this class describes a sequence of consecutive line segments in the 2-D plane.
Subclasses are: IlpPolyline, where the starting point
and end point usually differ, and IlpPolygon, which
describes polygons.
| Constructor Summary | |
|---|---|
protected |
IlpPolyPoints()
Note that _numsegments can validly be 0. |
| Method Summary | |
|---|---|
abstract void |
applyTransform(IlvTransformer t)
Applies a transform to the points, thereby destructively modifying the polyline and its segments. |
abstract ilog.cpl.graphic.views.internal.IlpPolyTwoPolylines |
computeThickLinkShape(float thickness,
float miterlimit)
Returns the two polylines bounding the result of blowing up this polyline to a given thickness. |
boolean |
equals(Object other)
|
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()
|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected IlpPolyPoints()
| Method Detail |
|---|
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)
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(float thickness,
float 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)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||