public class IlvChartLayout extends Object implements LayoutManager2, Serializable, IlvServerSideLayout
NORTH_TOP, NORTH_BOTTOM, SOUTH_BOTTOM,
SOUTH_TOP, NORTH_WEST, WEST,
SOUTH_WEST, NORTH_EAST, EAST,
SOUTH_EAST, CENTER and ABSOLUTE.
The following figures show the different regions with an eastern component
placed at NORTH_EAST :

| Modifier and Type | Field and Description |
|---|---|
static String |
ABSOLUTE
The absolute layout constraint (within the chart using the component bounds).
|
static String |
CENTER
The center layout constraint (middle of the chart).
|
static String |
EAST
The east layout constraint (right side of the chart).
|
static String |
NORTH_BOTTOM
The north-bottom layout constraint (top of the chart, below the north-top component).
|
static String |
NORTH_EAST
The north-east layout constraint (right side and top of the chart).
|
static String |
NORTH_TOP
The north-top layout constraint (top of the chart).
|
static String |
NORTH_WEST
The north-west layout constraint (left side and top of the chart).
|
static String |
SOUTH_BOTTOM
The south-bottom layout constraint (bottom of the chart).
|
static String |
SOUTH_EAST
The south-east layout constraint (right side and bottom of the chart).
|
static String |
SOUTH_TOP
The south-top layout constraint (bottom of the chart, above the south-bottom component).
|
static String |
SOUTH_WEST
The south-west layout constraint (left side and bottom of the chart).
|
static String |
WEST
The west layout constraint (left side of the chart).
|
BOUNDS_PROPERTY| Constructor and Description |
|---|
IlvChartLayout()
Creates a new
IlvChartLayout object. |
| Modifier and Type | Method and Description |
|---|---|
void |
addLayoutComponent(Component comp,
Object constraints)
Adds the specified component to the layout, using the specified
constraint object.
|
void |
addLayoutComponent(String c,
Component comp)
Deprecated.
Replaced by addLayoutComponent(Component, Object).
|
Map<Component,Rectangle> |
computeBounds(Container target,
Rectangle rect)
Returns a
Map of components bounding boxes expressed as Rectangles. |
float |
getLayoutAlignmentX(Container parent)
Returns the alignment along the x-axis.
|
float |
getLayoutAlignmentY(Container parent)
Returns the alignment along the y-axis.
|
void |
invalidateLayout(Container target)
Invalidates the layout, indicating that if the layout manager has cached
information it should be discarded.
|
void |
layoutContainer(Container target)
Lays out the container argument using this layout.
|
Dimension |
maximumLayoutSize(Container target)
Returns the maximum dimensions for this layout given the components in
the specified target container.
|
Dimension |
minimumLayoutSize(Container target)
Determines the minimum size of the target container using this layout
manager.
|
Dimension |
preferredLayoutSize(Container target)
Determines the preferred size of the target container using this
layout manager, based on the components in the container.
|
void |
removeLayoutComponent(Component comp)
Removes the specified component from this layout.
|
public static final String WEST
public static final String EAST
public static final String NORTH_TOP
public static final String NORTH_BOTTOM
public static final String SOUTH_BOTTOM
public static final String SOUTH_TOP
public static final String NORTH_WEST
public static final String NORTH_EAST
public static final String SOUTH_WEST
public static final String SOUTH_EAST
public static final String ABSOLUTE
public static final String CENTER
public void addLayoutComponent(Component comp, Object constraints)
IlvChartLayout
class. A null constraint means an absolute layout
and is not taken into account by the layout manager.addLayoutComponent in interface LayoutManager2@Deprecated public void addLayoutComponent(String c, Component comp)
IlvChartLayout
class. A null constraint means an absolute layout
and is not taken into account by the layout manager.addLayoutComponent in interface LayoutManagerpublic void removeLayoutComponent(Component comp)
remove or
removeAll methods.removeLayoutComponent in interface LayoutManagercomp - The component to remove.public void layoutContainer(Container target)
This method actually reshapes the components in the specified
container in order to satisfy the constraints of this IlvChartLayout object.
The NORTH_TOP and NORTH_BOTTOM components (if
any) are placed at the top of the container. The SOUTH_TOP
and then SOUTH_BOTTOM components (if any) are placed at the
bottom of the container. Then the east (EAST,
SOUTH_EAST, NORTH_EAST) and the west
(WEST, SOUTH_WEST, NORTH_WEST)
components (if any) are placed on the right and left, respectively.
Finally, the CENTER component is added in the middle.
layoutContainer in interface LayoutManagerpublic Map<Component,Rectangle> computeBounds(Container target, Rectangle rect)
IlvServerSideLayoutMap of components bounding boxes expressed as Rectangles.computeBounds in interface IlvServerSideLayouttarget - The container of components.rect - The overall bounding rectangle.Map of bounding boxes.public Dimension preferredLayoutSize(Container target)
preferredLayoutSize in interface LayoutManagerpublic Dimension minimumLayoutSize(Container target)
minimumLayoutSize in interface LayoutManagerpublic Dimension maximumLayoutSize(Container target)
maximumLayoutSize in interface LayoutManager2public float getLayoutAlignmentX(Container parent)
getLayoutAlignmentX in interface LayoutManager2public float getLayoutAlignmentY(Container parent)
getLayoutAlignmentY in interface LayoutManager2public void invalidateLayout(Container target)
invalidateLayout in interface LayoutManager2© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.