@Deprecated public abstract class IltLogicalPolyPoints extends Object
Subclasses are: IltLogicalPolyline
, where the starting point
and end point usually differ, and IltLogicalPolygon
, which
describes polygons.
Modifier and Type | Class and Description |
---|---|
static class |
IltLogicalPolyPoints.PointAndDirection
Deprecated.
Please use the classes ilog.cpl.graphic.views.IlpPolygon and
ilog.cpl.graphic.views.IlpPolyline instead.
|
static class |
IltLogicalPolyPoints.TwoPolylines
Deprecated.
Please use the classes ilog.cpl.graphic.views.IlpPolygon and
ilog.cpl.graphic.views.IlpPolyline instead.
|
Modifier | Constructor and Description |
---|---|
protected |
IltLogicalPolyPoints()
Deprecated.
Default constructor
|
Modifier and Type | Method and Description |
---|---|
abstract void |
applyTransform(IlvTransformer t)
Deprecated.
Applies a transform to the points, thereby destructively modifying the
polyline and its segments.
|
abstract IltLogicalPolyPoints.TwoPolylines |
computeThickLinkShape(double thickness,
double miterlimit)
Deprecated.
Returns the two polylines bounding the result of blowing up this
polyline to a given thickness.
|
boolean |
equals(Object other)
Deprecated.
Compares this object with another object.
|
Rectangle |
getBounds()
Deprecated.
This method was renamed to
getBounds2D .
Please use (IlvRect)getBounds2D() instead. |
Rectangle2D |
getBounds2D()
Deprecated.
Returns the smallest rectangle covering all points.
|
int |
getClosestSegment(IlvPoint p)
Deprecated.
Returns the index of the segment which is closest to a given point.
|
IlvPoint |
getGravity0()
Deprecated.
Returns the gravity center of all points.
|
IlvPoint |
getGravity1()
Deprecated.
Returns the gravity center of all segments.
|
abstract IltLogicalPolyPoints.PointAndDirection |
getMedian()
Deprecated.
Returns the "midpoint" of the polyline, and the direction of the
segment containing it.
|
abstract int |
getNumberOfPoints()
Deprecated.
Returns the number of points in the polyline.
|
int |
getNumberOfSegments()
Deprecated.
Returns the number of segments in the polyline.
|
IlvPoint |
getPoint(int index)
Deprecated.
Returns a specific point (0 <= index < getNumberOfPoints()).
|
IlvPoint[] |
getPoints()
Deprecated.
Returns the array of points.
|
IlvPoint[] |
getPointsCloned()
Deprecated.
Returns a fresh copy of the array of points.
|
IltLineSegment |
getSegment(int index)
Deprecated.
Returns a specific segment (0 <= index < getNumberOfSegments()).
|
IltLineSegment[] |
getSegments()
Deprecated.
Returns the array of segments.
|
int |
hashCode()
Deprecated.
Returns a hash code coherent with equals().
|
abstract void |
insertPoint(IlvPoint p)
Deprecated.
Inserts a point where it fits best.
|
abstract void |
insertPoint(int index,
IlvPoint p)
Deprecated.
Inserts a point into a specific segment.
|
abstract void |
movePoint(int index,
IlvPoint p)
Deprecated.
Moves a specific point to a new location.
|
abstract void |
removePoint(int index)
Deprecated.
Removes a specific point.
|
abstract void |
removeRedundantPoints()
Deprecated.
Removes all redundant points (points which are between their neighbours).
|
abstract void |
reverse()
Deprecated.
Reverses the order of the points, the order of the segments and the
directions of the segments.
|
abstract void |
setNumberOfSegments(int numsegs)
Deprecated.
During construction of an instance, this sets the number of segments.
|
abstract void |
setSegment(int index,
IlvPoint start,
IlvPoint end)
Deprecated.
During construction of an instance, this sets a specified segment.
|
String |
toString()
Deprecated.
Returns the String representation of this IltPolyline's values.
|
protected IltLogicalPolyPoints()
public int getNumberOfSegments()
public IltLineSegment getSegment(int index)
public IltLineSegment[] 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
public IlvPoint getGravity0()
public IlvPoint getGravity1()
public abstract IltLogicalPolyPoints.PointAndDirection getMedian()
public abstract IltLogicalPolyPoints.TwoPolylines computeThickLinkShape(double thickness, double miterlimit)
miterlimit
- see comments in class IltGraphicUtilpublic abstract void setNumberOfSegments(int numsegs)
public abstract void setSegment(int index, IlvPoint start, IlvPoint end)
index
- satisfies 0 <= index < getNumberOfSegments()public 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)
IltLogicalPolyline
instances are considered equal if
all their segments and endpoints (if any) are the same.public int hashCode()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.