public class FPMILayout
extends java.lang.Object
implements java.awt.LayoutManager
| Modifier and Type | Field and Description |
|---|---|
static int |
ANCHOR_E |
static int |
ANCHOR_N |
static int |
ANCHOR_S |
static int |
ANCHOR_W |
static int |
AR_LEADING |
static int |
AR_OFF |
static int |
AR_TRAILING |
static java.lang.String |
BOUNDS_2D |
static int |
CENTER_X |
static int |
CENTER_Y |
static int |
DEFAULT_FLAGS |
static java.lang.String |
LAYOUT_CONSTRAINTS |
static java.lang.String |
LAYOUT_FLAGS |
static java.lang.String |
NO_SCALE_FONTS |
static java.lang.String |
PREF_SIZE_2D |
static int |
SCALE_RELATIVE |
| Constructor and Description |
|---|
FPMILayout() |
| Modifier and Type | Method and Description |
|---|---|
static java.awt.geom.Point2D |
_getPrefSize(javax.swing.JComponent comp) |
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp) |
static java.awt.geom.Rectangle2D |
getBounds(javax.swing.JComponent comp)
Provides a consistent way to get the bounds of a component.
|
static java.awt.geom.Rectangle2D |
getBounds(javax.swing.JComponent comp,
java.awt.geom.Rectangle2D rv) |
static FPMI_LC |
getLayoutConstraints(javax.swing.JComponent comp)
Looks for the layout constraints (FPMI_LC object) on the component using client property key "fpmi.lc".
|
static javax.swing.JComponent |
getOffsettingParent(javax.swing.JComponent source)
Find the closest VisionContainer parent of the source component that is an offsetting parent
|
static java.awt.geom.Rectangle2D |
getPreferredBounds(javax.swing.JComponent comp)
Provides a consistent way to get the preferred bounds of a component.
|
void |
layoutContainer(java.awt.Container parent) |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent) |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent) |
void |
removeLayoutComponent(java.awt.Component comp) |
static void |
setBounds(javax.swing.JComponent comp,
java.awt.geom.Rectangle2D bounds)
Sets the actual bounds of a component.
|
static void |
setPreferredBounds(javax.swing.JComponent comp,
java.awt.geom.Rectangle2D bounds)
Set the preferred bounding box of a component.
|
static void |
setRelativeEnabled(boolean b)
Deprecated.
|
public static final java.lang.String LAYOUT_FLAGS
public static final java.lang.String NO_SCALE_FONTS
public static final java.lang.String PREF_SIZE_2D
public static final java.lang.String BOUNDS_2D
public static final java.lang.String LAYOUT_CONSTRAINTS
public static final int ANCHOR_N
public static final int ANCHOR_S
public static final int ANCHOR_E
public static final int ANCHOR_W
public static final int SCALE_RELATIVE
public static final int CENTER_X
public static final int CENTER_Y
public static final int AR_LEADING
public static final int AR_TRAILING
public static final int AR_OFF
public static final int DEFAULT_FLAGS
@Deprecated public static void setRelativeEnabled(boolean b)
public static FPMI_LC getLayoutConstraints(javax.swing.JComponent comp)
public void addLayoutComponent(java.lang.String name,
java.awt.Component comp)
addLayoutComponent in interface java.awt.LayoutManagerpublic void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent in interface java.awt.LayoutManagerpublic java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
preferredLayoutSize in interface java.awt.LayoutManagerpublic java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
minimumLayoutSize in interface java.awt.LayoutManagerpublic static java.awt.geom.Rectangle2D getPreferredBounds(javax.swing.JComponent comp)
public static java.awt.geom.Point2D _getPrefSize(javax.swing.JComponent comp)
public static void setPreferredBounds(javax.swing.JComponent comp,
java.awt.geom.Rectangle2D bounds)
JComponent vs Bounds2DComponentpublic static java.awt.geom.Rectangle2D getBounds(javax.swing.JComponent comp)
Bounds2DComponent and normal JComponent.public static java.awt.geom.Rectangle2D getBounds(javax.swing.JComponent comp,
java.awt.geom.Rectangle2D rv)
public static void setBounds(javax.swing.JComponent comp,
java.awt.geom.Rectangle2D bounds)
JComponent vs Bounds2DComponentpublic void layoutContainer(java.awt.Container parent)
layoutContainer in interface java.awt.LayoutManagerpublic static javax.swing.JComponent getOffsettingParent(javax.swing.JComponent source)