public interface IlvCrossingAwareObject
IlvGraphic
must implement this interface,
if it should be able to display crossing graphics (tunnels, jogs, bridges)
at the place where lines cross.
Crossing aware objects are typically links and hyperedges, i.e. graphic
objects that consist of a set of line segments.
The bounding box of the crossing aware object should always include all
crossing aware segments returned by getCrossingAwareSegments(ilog.views.IlvTransformer)
.IlvCrossingAwareSegment
Modifier and Type | Method and Description |
---|---|
IlvRect |
boundingBoxCrossingGraphic(IlvTransformer t)
Returns the bounding rectangle of the crossing graphic that belongs to
this object.
|
boolean |
containsAtCrossingGraphic(IlvPoint p,
IlvPoint tp,
IlvTransformer t)
Tests if a point lies within the outline of the crossing graphic
that belongs to this object.
|
void |
drawCrossingGraphic(Graphics dst,
IlvTransformer t)
Draws the crossing graphic that belongs to this object.
|
IlvGraphic |
getCrossingAwareGraphic()
Returns the corresponding graphic.
|
IlvCrossingAwareSegment[] |
getCrossingAwareSegments(IlvTransformer t)
Returns all segments of the object.
|
IlvGraphic |
getCrossingGraphic()
Returns the graphic object that draws the crossings.
|
double |
getLineWidth(IlvTransformer t)
Returns the line width of the segments of the object.
|
boolean |
isCrossingEnabled()
Whether crossings are enabled for the crossing owner.
|
void |
removeAllCrossings(IlvTransformer t)
Removes all crossings added at the object for a given transformer.
|
void |
setCrossingAdjusting(boolean adjusting)
Starts or end an adjustment session for the crossings.
|
IlvGraphic getCrossingAwareGraphic()
IlvGraphic
implements this interface,
it should return the this
handle.IlvCrossingAwareSegment[] getCrossingAwareSegments(IlvTransformer t)
t
- The transformer to draw the object.double getLineWidth(IlvTransformer t)
t
- The transformer to draw the object.void removeAllCrossings(IlvTransformer t)
t
- The transformer to draw the object.IlvGraphic getCrossingGraphic()
void drawCrossingGraphic(Graphics dst, IlvTransformer t)
draw
method
to this method if necessary.
dst
- The destination Graphics.t
- The transformation used to draw this object.IlvAbstractCrossingGraphic.draw(java.awt.Graphics, ilog.views.IlvTransformer)
boolean containsAtCrossingGraphic(IlvPoint p, IlvPoint tp, IlvTransformer t)
contains
method
to this method if necessary.
p
- The point to be tested in the coordinate system of this object.tp
- The point p
transformed by the transformer
t
.t
- The transformation that was applied to this object when it
was drawn.IlvAbstractCrossingGraphic.contains(ilog.views.IlvPoint, ilog.views.IlvPoint, ilog.views.IlvTransformer)
IlvRect boundingBoxCrossingGraphic(IlvTransformer t)
boundingBox
method
to this method if necessary.
t
- The transformer used to draw this object.IlvAbstractCrossingGraphic.boundingBox(ilog.views.IlvTransformer)
void setCrossingAdjusting(boolean adjusting)
boolean isCrossingEnabled()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.