|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IlvLinkBundleFrame
The frame of an IlvLinkBundle.
The IlvLinkBundleFrame interface defines
the frame that is drawn around an IlvLinkBundle when
this link bundle is added into another link bundle or into a
grapher. This interface
defines the margin that will be added around the link bundle.
It defines how the frame is drawn (for example, an implementing class
can draw a background underneath the content of the
link bundle) and how hit testing on the frame is performed.
| Method Summary | |
|---|---|
IlvRect |
boundingBox(IlvLinkBundle linkBundle,
IlvTransformer t)
Returns the bounding rectangle of the frame for a given link bundle and transformer. |
boolean |
contains(IlvLinkBundle linkBundle,
IlvPoint p,
IlvPoint tp,
IlvTransformer t)
Tests if a point lies within the outline of the frame. |
IlvLinkBundleFrame |
copy()
Creates a new frame by copying this one. |
void |
draw(IlvLinkBundle linkBundle,
Graphics g,
IlvTransformer t)
Draws the frame. |
float |
getMargin(IlvLinkBundle linkBundle,
IlvTransformer t)
Returns the margin of the specified link bundle. |
| Method Detail |
|---|
IlvLinkBundleFrame copy()
IlvRect boundingBox(IlvLinkBundle linkBundle,
IlvTransformer t)
linkBundle - The link bundle.t - The transformer used to draw the link bundle.
float getMargin(IlvLinkBundle linkBundle,
IlvTransformer t)
linkBundle - The link bundle.t - The transformer used to draw the link bundle and the frame.
void draw(IlvLinkBundle linkBundle,
Graphics g,
IlvTransformer t)
linkBundle - The link bundle.g - The Graphics used to draw the frame.t - The transformer used to draw the frame.
boolean contains(IlvLinkBundle linkBundle,
IlvPoint p,
IlvPoint tp,
IlvTransformer t)
linkBundle - The link bundle.p - The point to be tested.tp - The point p transformed by the transformer
t.t - The transformation that is used to draw the frame.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||