public interface IlvCrossingGraphic
IlvCrossingAwareLinkImage
.
IlvCrossingAwareLinkImage.setCrossingGraphic(ilog.views.IlvGraphic)
Modifier and Type | Method and Description |
---|---|
void |
addCrossingBound(IlvRect boundingRect,
IlvTransformer t,
IlvLinkImage link1,
IlvLinkImage link2,
IlvPoint p0,
IlvPoint p1,
IlvPoint p2,
IlvPoint p3,
double startGap,
double endGap,
double normalGap)
Adds the bound of the crossing to the input bounding rectangle.
|
boolean |
containsAtCrossing(IlvPoint p,
IlvPoint tp,
IlvTransformer t,
IlvLinkImage link1,
IlvLinkImage link2,
IlvPoint p0,
IlvPoint p1,
IlvPoint p2,
IlvPoint p3,
double startGap,
double endGap,
double normalGap)
Tests if a point lies within the drawing of a crossing.
|
void |
crossingChanged()
This method is called whenever a crossing related to this crossing
graphic has changed.
|
void |
drawCrossing(Graphics dst,
IlvTransformer t,
IlvLinkImage link1,
IlvLinkImage link2,
IlvPoint p0,
IlvPoint p1,
IlvPoint p2,
IlvPoint p3,
double startGap,
double endGap,
double normalGap)
Draws the crossing between the input links.
|
IlvRect |
expandLinkBoundingBox(IlvRect linkBounds,
IlvTransformer t)
Expands the input bounding box, which is the bounds of the link
without crossing shape, by a margin that is large enough to
contain all drawings of crossings displayed by this crossing graphic.
|
void addCrossingBound(IlvRect boundingRect, IlvTransformer t, IlvLinkImage link1, IlvLinkImage link2, IlvPoint p0, IlvPoint p1, IlvPoint p2, IlvPoint p3, double startGap, double endGap, double normalGap)
boundingRect
- The bounding rectangle containing the result.t
- The transformation used to draw the first link.link1
- The first link, which is the link containing this
crossing graphic.link2
- The second link.p0
- The point before the start point of the crossing
picture inside the first link.p1
- The start point of the crossing picture inside the
first link.p2
- The end point of the crossing picture inside the
first link.p3
- The point after the end point of the crossing picture
inside the first link.startGap
- The real gap between start point and the link crossing.endGap
- The real gap between end point and the link crossing.normalGap
- The desired normal gap at the link crossing. The start
gap and end gap may be smaller than the normal gap.void drawCrossing(Graphics dst, IlvTransformer t, IlvLinkImage link1, IlvLinkImage link2, IlvPoint p0, IlvPoint p1, IlvPoint p2, IlvPoint p3, double startGap, double endGap, double normalGap)
dst
- The destination graphics.t
- The transformation used to draw the first link.link1
- The first link, which is the link containing this
crossing graphic.link2
- The second link.p0
- The point before the start point of the crossing
picture inside the first link.p1
- The start point of the crossing picture inside the
first link.p2
- The end point of the crossing picture inside the
first link.p3
- The point after the end point of the crossing picture
inside the first link.startGap
- The real gap between start point and the link crossing.endGap
- The real gap between end point and the link crossing.normalGap
- The desired normal gap at the link crossing. The start
gap and end gap may be smaller than the normal gap.boolean containsAtCrossing(IlvPoint p, IlvPoint tp, IlvTransformer t, IlvLinkImage link1, IlvLinkImage link2, IlvPoint p0, IlvPoint p1, IlvPoint p2, IlvPoint p3, double startGap, double endGap, double normalGap)
p
- The point to be tested. This point is untransformed.tp
- The point p
transformed by the
transformer t
.t
- The transformation used to draw the first link.link1
- The first link, which is the link containing this
crossing graphic.link2
- The second link.p0
- The point before the start point of the crossing
picture inside the first link.p1
- The start point of the crossing picture inside the
first link.p2
- The end point of the crossing picture inside the
first link.p3
- The point after the end point of the crossing picture
inside the first link.startGap
- The real gap between start point and the link crossing.endGap
- The real gap between end point and the link crossing.normalGap
- The desired normal gap at the link crossing. The start
gap and end gap may be smaller than the normal gap.IlvRect expandLinkBoundingBox(IlvRect linkBounds, IlvTransformer t)
linkBounds
- The bounds of the link.t
- The transformer to draw the link.void crossingChanged()
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.