@Deprecated public class IltLogicalPolyline extends IltLogicalPolyPoints implements Shape, IlpPosition, Cloneable
IltLogicalPolyPoints.PointAndDirection, IltLogicalPolyPoints.TwoPolylines| Constructor and Description |
|---|
IltLogicalPolyline(IltLogicalPolyline orig)
Deprecated.
Creates a new polyline from a given one.
|
IltLogicalPolyline(IlvPoint[] points)
Deprecated.
Creates a new
IltLogicalPolyline instance, connecting given
points. |
IltLogicalPolyline(IlvPoint[] points,
boolean removeRedundant)
Deprecated.
Creates a new
IltLogicalPolyline instance, connecting given
points. |
IltLogicalPolyline(IlvPoint from,
IlvPoint to)
Deprecated.
Creates a new
IltLogicalPolyline instance. |
| Modifier and Type | Method and Description |
|---|---|
IlvPoint[] |
adjustForArrow(IltLineSegment segment,
double arrowSize,
double width)
Deprecated.
Returns the points necessary to add to the polyline to draw an arrow at
one extremity of the link.
|
void |
adjustForFromArrow(float arrowSize,
float width)
Deprecated.
Adds one or two points depending on the shape of the polyline that can
then be used to draw a link with an arrow at the from end.
|
void |
adjustForToArrow(float arrowSize,
float width)
Deprecated.
Adds one or two points depending on the shape of the polyline that can
then be used to draw a link with an arrow at the to end.
|
void |
applyTransform(IlvTransformer t)
Deprecated.
Applies a transform to the points, thereby destructively modifying the
polyline and its segments.
|
Object |
clone()
Deprecated.
Creates a copy of this polyline.
|
IltLogicalPolyline |
computeParallel(double apart,
double miterlimit)
Deprecated.
Returns a parallel polyline.
|
IltLogicalPolyline |
computeParallel(double apart,
double miterlimit,
boolean reverse)
Deprecated.
Returns a parallel polyline.
|
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 |
contains(double x,
double y)
Deprecated.
|
boolean |
contains(double x,
double y,
double width,
double height)
Deprecated.
|
boolean |
contains(Point2D p)
Deprecated.
|
boolean |
contains(Rectangle2D r)
Deprecated.
|
IltPolyline |
floor()
Deprecated.
Returns a polyline formed by the integers corresponding to this polyline.
|
IlvPoint |
getFrom()
Deprecated.
Returns the starting point of the polyline.
|
IltLogicalPolyPoints.PointAndDirection |
getMedian()
Deprecated.
Returns the "midpoint" of the polyline, and the direction of the
segment containing it.
|
int |
getNumberOfPoints()
Deprecated.
Returns the number of points in the polyline.
|
PathIterator |
getPathIterator(AffineTransform transform)
Deprecated.
|
PathIterator |
getPathIterator(AffineTransform at,
double flatness)
Deprecated.
|
IlvPoint |
getTo()
Deprecated.
Returns the end point of the polyline.
|
void |
insertPoint(IlvPoint p)
Deprecated.
Inserts a point into the nearest segment.
|
void |
insertPoint(int index,
IlvPoint p)
Deprecated.
Inserts a point into a specific segment.
|
boolean |
intersects(double x,
double y,
double width,
double height)
Deprecated.
|
boolean |
intersects(Rectangle2D r)
Deprecated.
|
void |
movePoint(int index,
IlvPoint p)
Deprecated.
Moves a specific point to a new location.
|
void |
removePoint(int index)
Deprecated.
Removes a specific point.
|
void |
removeRedundantPoints()
Deprecated.
Removes all redundant points (points that are between their neighbors).
|
void |
reverse()
Deprecated.
Reverses the order of the points, the order of the segments and the
directions of the segments.
|
void |
setNumberOfSegments(int numsegs)
Deprecated.
During construction of an instance, this sets the number of segments.
|
void |
setSegment(int index,
IlvPoint from,
IlvPoint to)
Deprecated.
During construction of an instance, this sets a specified segment.
|
IlpPolyline |
upgrade()
Deprecated.
Creates a new
IlpPolyline from this deprecated instance. |
equals, getBounds, getBounds2D, getClosestSegment, getGravity0, getGravity1, getNumberOfSegments, getPoint, getPoints, getPointsCloned, getSegment, getSegments, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitgetBounds, getBounds2Dpublic IltLogicalPolyline(IlvPoint from, IlvPoint to)
IltLogicalPolyline instance. The segments
must be added afterwards.public IltLogicalPolyline(IltLogicalPolyline orig)
public IltLogicalPolyline(IlvPoint[] points, boolean removeRedundant)
IltLogicalPolyline instance, connecting given
points.points - a non-empty array of pointsremoveRedundant - indicates whether redundant points shall be removedpublic IltLogicalPolyline(IlvPoint[] points)
IltLogicalPolyline instance, connecting given
points.points - a non-empty array of pointspublic IlvPoint getFrom()
public IlvPoint getTo()
public void setNumberOfSegments(int numsegs)
IltLogicalPolyPointssetNumberOfSegments in class IltLogicalPolyPointspublic void setSegment(int index,
IlvPoint from,
IlvPoint to)
IltLogicalPolyPointssetSegment in class IltLogicalPolyPointsindex - satisfies 0 <= index < getNumberOfSegments()public Object clone()
public IlpPolyline upgrade()
IlpPolyline from this deprecated instance.public int getNumberOfPoints()
getNumberOfPoints in class IltLogicalPolyPointspublic boolean contains(double x,
double y)
public boolean contains(Point2D p)
public boolean intersects(double x,
double y,
double width,
double height)
intersects in interface Shapepublic boolean intersects(Rectangle2D r)
intersects in interface Shapepublic boolean contains(double x,
double y,
double width,
double height)
public boolean contains(Rectangle2D r)
public PathIterator getPathIterator(AffineTransform transform)
getPathIterator in interface Shapepublic PathIterator getPathIterator(AffineTransform at, double flatness)
getPathIterator in interface Shapepublic IltLogicalPolyPoints.PointAndDirection getMedian()
getMedian in class IltLogicalPolyPointspublic IltLogicalPolyline computeParallel(double apart, double miterlimit)
apart - distance (positive for a parallel to the right of the
polyline, negative for a parallel to the left of the
polyline)miterlimit - see comments in class IltGraphicUtilpublic IltLogicalPolyline computeParallel(double apart, double miterlimit, boolean reverse)
apart - distance (positive for a parallel to the right of the
polyline, negative for a parallel to the left of the
polyline)miterlimit - see comments in class IltGraphicUtilreverse - whether to reverse the orientation of the resulting polylinepublic IltLogicalPolyPoints.TwoPolylines computeThickLinkShape(double thickness, double miterlimit)
This is the same as: new IlpPolyTwoPolylines(computeParallel(-0.5*thickness,miterlimit), computeParallel(0.5*thickness,miterlimit)).
computeThickLinkShape in class IltLogicalPolyPointsmiterlimit - see comments in class IltGraphicUtilpublic void applyTransform(IlvTransformer t)
applyTransform in class IltLogicalPolyPointspublic void reverse()
reverse in class IltLogicalPolyPointspublic void insertPoint(int index,
IlvPoint p)
insertPoint in class IltLogicalPolyPointsindex - satisfies -1 <= index <= getNumberOfSegments().
index = -1 means to add the point as new "from" end,
index = getNumberOfSegments() means to add the point as
new "to" end.p - the point to be inserted.public void insertPoint(IlvPoint p)
insertPoint in class IltLogicalPolyPointsp - the point to be inserted.public void movePoint(int index,
IlvPoint p)
movePoint in class IltLogicalPolyPointsindex - satisfies 0 <= index < getNumberOfPoints().p - the point to be moved.public void removePoint(int index)
removePoint in class IltLogicalPolyPointsindex - satisfies 0 <= index < getNumberOfPoints()public void removeRedundantPoints()
removeRedundantPoints in class IltLogicalPolyPointspublic IltPolyline floor()
public void adjustForFromArrow(float arrowSize,
float width)
arrowSize - length of the arrow in pixelswidth - width of the arrow in pixelspublic void adjustForToArrow(float arrowSize,
float width)
arrowSize - length of the arrow in pixelswidth - width of the arrow in pixelspublic IlvPoint[] adjustForArrow(IltLineSegment segment, double arrowSize, double width)
segment - oriented segment that is one end of the link, which will be
replaced with an arrowarrowSize - length of the arrow in pixelswidth - width of the arrow in pixels© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.