Class ConstraintLayout
java.lang.Object
de.uni_trier.wi2.procake.gui.objecteditor.nestworkfloweditor.swing.layouts.ConstraintLayout
- All Implemented Interfaces:
LayoutManager,LayoutManager2
- Direct Known Subclasses:
BasicGridLayout
A base class for layouts which simplifies the business of building new layouts with constraints.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLayoutComponent(Component c, Object constraint) voidaddLayoutComponent(String constraint, Component c) calcLayoutSize(Container target, int type) protected DimensiongetComponentSize(Component c, int type) booleanfloatgetLayoutAlignmentX(Container parent) floatgetLayoutAlignmentY(Container parent) protected booleanvoidinvalidateLayout(Container target) voidlayoutContainer(Container target) maximumLayoutSize(Container target) voidmeasureLayout(Container target, Dimension dimension, int type) minimumLayoutSize(Container target) preferredLayoutSize(Container target) voidvoidsetConstraint(Component c, Object constraint) voidsetIncludeInvisible(boolean includeInvisible)
-
Field Details
-
PREFERRED
protected static final int PREFERRED- See Also:
-
MINIMUM
protected static final int MINIMUM- See Also:
-
MAXIMUM
protected static final int MAXIMUM- See Also:
-
hMargin
protected int hMargin -
vMargin
protected int vMargin -
includeInvisible
protected boolean includeInvisible
-
-
Constructor Details
-
ConstraintLayout
public ConstraintLayout()
-
-
Method Details
-
addLayoutComponent
- Specified by:
addLayoutComponentin interfaceLayoutManager
-
addLayoutComponent
- Specified by:
addLayoutComponentin interfaceLayoutManager2
-
removeLayoutComponent
- Specified by:
removeLayoutComponentin interfaceLayoutManager
-
setConstraint
-
getConstraint
-
getIncludeInvisible
public boolean getIncludeInvisible() -
setIncludeInvisible
public void setIncludeInvisible(boolean includeInvisible) -
includeComponent
-
minimumLayoutSize
- Specified by:
minimumLayoutSizein interfaceLayoutManager
-
maximumLayoutSize
- Specified by:
maximumLayoutSizein interfaceLayoutManager2
-
preferredLayoutSize
- Specified by:
preferredLayoutSizein interfaceLayoutManager
-
calcLayoutSize
-
invalidateLayout
- Specified by:
invalidateLayoutin interfaceLayoutManager2
-
getLayoutAlignmentX
- Specified by:
getLayoutAlignmentXin interfaceLayoutManager2
-
getLayoutAlignmentY
- Specified by:
getLayoutAlignmentYin interfaceLayoutManager2
-
layoutContainer
- Specified by:
layoutContainerin interfaceLayoutManager
-
measureLayout
-
getComponentSize
-