public class WebLayoutStyle extends DefaultLayoutStyle
| Constructor and Description |
|---|
WebLayoutStyle() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getButtonGap(javax.swing.JComponent source,
javax.swing.JComponent target,
int position,
int offset)
For some look and feels check boxs and radio buttons typically don't paint the border, yet they have padding for a border.
|
int |
getContainerGap(javax.swing.JComponent component,
int position,
java.awt.Container parent) |
static WebLayoutStyle |
getInstance()
Returns instance of this layout style.
|
int |
getPreferredGap(javax.swing.JComponent component1,
javax.swing.JComponent component2,
javax.swing.LayoutStyle.ComponentPlacement type,
int position,
java.awt.Container parent) |
flipDirection, getButtonGap, getButtonGap, getIndent, isLabelAndNonlabelpublic static WebLayoutStyle getInstance()
public int getPreferredGap(javax.swing.JComponent component1,
javax.swing.JComponent component2,
javax.swing.LayoutStyle.ComponentPlacement type,
int position,
java.awt.Container parent)
getPreferredGap in class DefaultLayoutStylepublic int getContainerGap(javax.swing.JComponent component,
int position,
java.awt.Container parent)
getContainerGap in class DefaultLayoutStyleprotected int getButtonGap(javax.swing.JComponent source,
javax.swing.JComponent target,
int position,
int offset)
DefaultLayoutStylegetButtonGap in class DefaultLayoutStylesource - first componenttarget - second componentposition - position doing layout alongoffset - Ideal offset, not including border/margin