public interface LayoutBlock
AbstractTabLayoutManager
to layout the contents of a TabPane
.Modifier and Type | Method and Description |
---|---|
Size[] |
getSizes()
Creates a map of all sizes for which this block knows how to make an optimal
layout.
|
void |
setBounds(int x,
int y,
int width,
int height)
Sets the boundaries of this block.
|
void |
setLayout(Size size)
Sets the layout of this block, the exact meaning of
size
depends on this block. |
void |
setOrientation(TabPlacement placement)
Tells this
LayoutBlock at which side of the tabs it is shown. |
Size[] getSizes()
null
void setLayout(Size size)
size
depends on this block. In general keys returned by the last call of
getSizes()
must be accepted, for any other key the behavior
is unspecified.size
- the new layoutjava.lang.IllegalArgumentException
- if key
is null
or cannot be readvoid setBounds(int x, int y, int width, int height)
x
- the x coordinatey
- the y coordinatewidth
- the width in pixelheight
- the height in pixelvoid setOrientation(TabPlacement placement)
LayoutBlock
at which side of the tabs it is shown.placement
- the placement, not null
java.lang.IllegalArgumentException
- if placement
is null