private static final class DefaultComponentFactory.TitledSeparatorLayout
extends java.lang.Object
implements java.awt.LayoutManager
| Modifier and Type | Field and Description |
|---|---|
private boolean |
centerSeparators |
| Modifier | Constructor and Description |
|---|---|
private |
TitledSeparatorLayout(boolean centerSeparators)
Constructs a TitledSeparatorLayout that either centers the separators
or aligns them along the font baseline of the title label.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
Does nothing.
|
private static javax.swing.JLabel |
getLabel(java.awt.Container parent) |
void |
layoutContainer(java.awt.Container parent)
Lays out the specified container.
|
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent)
Computes and returns the minimum size dimensions
for the specified container.
|
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent)
Computes and returns the preferred size dimensions
for the specified container.
|
void |
removeLayoutComponent(java.awt.Component comp)
Does nothing.
|
private TitledSeparatorLayout(boolean centerSeparators)
centerSeparators - true to center, false to align along
the font baseline of the title labelpublic void addLayoutComponent(java.lang.String name,
java.awt.Component comp)
addLayoutComponent in interface java.awt.LayoutManagername - the string to be associated with the componentcomp - the component to be addedpublic void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent in interface java.awt.LayoutManagercomp - the component to be removedpublic java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
#preferredLayoutSize.minimumLayoutSize in interface java.awt.LayoutManagerparent - the component to be laid outpreferredLayoutSize(Container)public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
preferredLayoutSize in interface java.awt.LayoutManagerparent - the component to be laid outminimumLayoutSize(Container)public void layoutContainer(java.awt.Container parent)
layoutContainer in interface java.awt.LayoutManagerparent - the container to be laid outprivate static javax.swing.JLabel getLabel(java.awt.Container parent)