ilog.views.graphic.linkbundle
Interface IlvLinkBundleFrame

All Known Implementing Classes:
IlvDefaultLinkBundleFrame

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.

Since:
JViews 8.0

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

copy

IlvLinkBundleFrame copy()
Creates a new frame by copying this one.


boundingBox

IlvRect boundingBox(IlvLinkBundle linkBundle,
                    IlvTransformer t)
Returns the bounding rectangle of the frame for a given link bundle and transformer.

Parameters:
linkBundle - The link bundle.
t - The transformer used to draw the link bundle.

getMargin

float getMargin(IlvLinkBundle linkBundle,
                IlvTransformer t)
Returns the margin of the specified link bundle.

Parameters:
linkBundle - The link bundle.
t - The transformer used to draw the link bundle and the frame.

draw

void draw(IlvLinkBundle linkBundle,
          Graphics g,
          IlvTransformer t)
Draws the frame.

Parameters:
linkBundle - The link bundle.
g - The Graphics used to draw the frame.
t - The transformer used to draw the frame.

contains

boolean contains(IlvLinkBundle linkBundle,
                 IlvPoint p,
                 IlvPoint tp,
                 IlvTransformer t)
Tests if a point lies within the outline of the frame.

Parameters:
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.


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.