|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.FlowLayout info.monitorenter.gui.chart.layouts.FlowLayoutCorrectMinimumSize
public class FlowLayoutCorrectMinimumSize
A flow layout that claims the correct height of the component managed in case
the available width is known. The standard
does
not claim the correct size but chooses the maximum width of all components to
render which is worthless as the fact of flow breaks is not taken into
account.
FlowLayout
This class is inspired by the sun class
with modifications to the methods
FlowLayout
and
preferredLayoutSize(Container)
.
minimumLayoutSize(Container)
Field Summary |
---|
Fields inherited from class java.awt.FlowLayout |
---|
CENTER, LEADING, LEFT, RIGHT, TRAILING |
Constructor Summary | |
---|---|
FlowLayoutCorrectMinimumSize(int align)
Constructs a new FlowLayout with the specified alignment and
a default 5-unit horizontal and vertical gap. |
|
FlowLayoutCorrectMinimumSize(int align,
int hgap,
int vgap)
Creates a new flow layout manager with the indicated alignment and the indicated horizontal and vertical gaps. |
Method Summary | |
---|---|
void |
layoutContainer(java.awt.Container target)
Lays out the container. |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container target)
Returns the minimum dimensions needed to layout the visible components contained in the specified target container. |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container target)
Returns the preferred dimensions for this layout given the visible components in the specified target container. |
Methods inherited from class java.awt.FlowLayout |
---|
addLayoutComponent, getAlignment, getAlignOnBaseline, getHgap, getVgap, removeLayoutComponent, setAlignment, setAlignOnBaseline, setHgap, setVgap, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FlowLayoutCorrectMinimumSize(int align)
FlowLayout
with the specified alignment and
a default 5-unit horizontal and vertical gap. The value of the alignment
argument must be one of FlowLayout.LEFT
,
FlowLayout.RIGHT
, FlowLayout.CENTER
,
FlowLayout.LEADING
, or FlowLayout.TRAILING
.
align
- the alignment valuepublic FlowLayoutCorrectMinimumSize(int align, int hgap, int vgap)
The value of the alignment argument must be one of
FlowLayout.LEFT
, FlowLayout.RIGHT
,
FlowLayout.CENTER
, FlowLayout.LEADING
, or
FlowLayout.TRAILING
.
align
- the alignment valuehgap
- the horizontal gap between components and between the components
and the borders of the Container
vgap
- the vertical gap between components and between the components
and the borders of the Container
Method Detail |
---|
public void layoutContainer(java.awt.Container target)
FlowLayout
object.
layoutContainer
in interface java.awt.LayoutManager
layoutContainer
in class java.awt.FlowLayout
target
- the specified component being laid outContainer
,
Container.doLayout()
public java.awt.Dimension minimumLayoutSize(java.awt.Container target)
minimumLayoutSize
in interface java.awt.LayoutManager
minimumLayoutSize
in class java.awt.FlowLayout
target
- the container that needs to be laid out
preferredLayoutSize(java.awt.Container)
,
Container
,
Container.doLayout()
public java.awt.Dimension preferredLayoutSize(java.awt.Container target)
preferredLayoutSize
in interface java.awt.LayoutManager
preferredLayoutSize
in class java.awt.FlowLayout
target
- the container that needs to be laid out
Container
,
minimumLayoutSize(java.awt.Container)
,
Container.getPreferredSize()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |