public static interface IlvExpandCollapseUtil.CustomAdjustmentPolicy
Modifier and Type | Method and Description |
---|---|
void |
apply(IlvManager parent,
IlvManager child,
IlvRect oldBounds,
IlvRect newBounds,
IlvTransformer t,
boolean redraw)
Adjusts the contents of the parent manager after the child was expanded
or collapsed.
|
void apply(IlvManager parent, IlvManager child, IlvRect oldBounds, IlvRect newBounds, IlvTransformer t, boolean redraw)
A policy can be used as stable policy the effect of collapsing
reverse the effect of expanding. If the adjustment depends only on
the bounding boxes of the child, the policy is stable if changing
from old bound to new bounds has the reverse effect than changing from
new bounds to old bounds. If this is not the case, it cannot be used
as stable policy (see IlvExpandCollapseUtil.expandOrCollapse(ilog.views.IlvManager, ilog.views.IlvExpandCollapseUtil.CustomAdjustmentPolicy, int, boolean, ilog.views.IlvTransformer, boolean)
).
parent
- The parent manager of the child.child
- The manager that got expanded or collapsed.oldBounds
- The old bounds of the child.newBounds
- The new bounds of the child.t
- The transformer to draw the child.redraw
- Whether the adjustment should be drawn.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.