|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.util.legend.LegendComponentLayout
A layout manager that implements a default layout for large JClass
components, such as JClass Chart and JClass Gauge, that comprise a
drawing area, a header, a footer, and a legend (a JCLegend object).
This layout places the drawing area class in the leftover space after
the legend, the header and the footer have been layed out, unless
specific layout hints were set on the object in JCChart. Any component
using this layout manager must implement
LegendComponentLayoutUser
.
Constructor Summary | |
LegendComponentLayout()
|
Method Summary | |
void |
addLayoutComponent(String name,
Component comp)
Adds the specified component with the specified name to the layout. |
void |
layoutContainer(Container parent)
Lays out the specified container. |
Dimension |
minimumLayoutSize(Container parent)
Determines the minimum size of the container using this layout. |
Dimension |
preferredLayoutSize(Container parent)
Determines the preferred size of the container by laying out the container's header, footer, legend, and drawing area. |
void |
removeLayoutComponent(Component comp)
Removes the specified component from the layout. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LegendComponentLayout()
Method Detail |
public void addLayoutComponent(String name, Component comp)
addLayoutComponent
in interface LayoutManager
name
- the name of the componentcomp
- the component to be addedpublic void removeLayoutComponent(Component comp)
removeLayoutComponent
in interface LayoutManager
comp
- the component to be removedpublic Dimension preferredLayoutSize(Container parent)
LegendComponentLayoutUser
, this
method returns a size of zero.
preferredLayoutSize
in interface LayoutManager
parent
- the container in which to do the layout. Must be a class
that implements LegendComponentLayoutUser
public Dimension minimumLayoutSize(Container parent)
LegendComponentLayoutUser
, this method
returns a size of zero.
minimumLayoutSize
in interface LayoutManager
parent
- the container in which to do the layout. Must be a class
that implements LegendComponentLayoutUser
public void layoutContainer(Container parent)
LegendComponentLayoutUser
, no layout is done.
layoutContainer
in interface LayoutManager
parent
- the container in which to do the layout. Must be a class
that implements LegendComponentLayoutUser
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |