Class TableGridLayout
- java.lang.Object
 - 
- com.inductiveautomation.factorypmi.application.components.calendar.layouts.TableGridLayout
 
 
- 
- All Implemented Interfaces:
 java.awt.LayoutManager,java.awt.LayoutManager2
public class TableGridLayout extends java.lang.Object implements java.awt.LayoutManager2 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description classTableGridLayout.Entry 
- 
Field Summary
Fields Modifier and Type Field Description protected intcolsstatic java.lang.StringCONSTRAINT_KEYComponents should store their TableGridLayoutConstraint object as a user object with this keyprotected intfakeRowsprotected introwsprotected introwTicksprotected intx1offsetprotected intx2offsetprotected inty1offsetprotected inty2offset 
- 
Constructor Summary
Constructors Constructor Description TableGridLayout()TableGridLayout(int rows, int cols, int x1offset, int y1offset, int x2offset, int y2offset, int rowTicks, int fakeRows) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLayoutComponent(java.awt.Component component, java.lang.Object constraint)voidaddLayoutComponent(java.lang.String name, java.awt.Component component)protected com.google.common.collect.Multimap<java.lang.Integer,TableGridLayout.Entry>getLayers(java.util.List<java.awt.Component> components)Returns a map of Layer indices to Entries for the supplied list of components.floatgetLayoutAlignmentX(java.awt.Container target)floatgetLayoutAlignmentY(java.awt.Container target)voidinvalidateLayout(java.awt.Container target)voidlayoutContainer(java.awt.Container target)java.awt.DimensionmaximumLayoutSize(java.awt.Container target)java.awt.DimensionminimumLayoutSize(java.awt.Container target)java.awt.DimensionpreferredLayoutSize(java.awt.Container target)voidremoveLayoutComponent(java.awt.Component component) 
 - 
 
- 
- 
Field Detail
- 
CONSTRAINT_KEY
public static final java.lang.String CONSTRAINT_KEY
Components should store their TableGridLayoutConstraint object as a user object with this key- See Also:
 - Constant Field Values
 
 
- 
rows
protected int rows
 
- 
cols
protected int cols
 
- 
x1offset
protected int x1offset
 
- 
y1offset
protected int y1offset
 
- 
x2offset
protected int x2offset
 
- 
y2offset
protected int y2offset
 
- 
rowTicks
protected int rowTicks
 
- 
fakeRows
protected int fakeRows
 
 - 
 
- 
Method Detail
- 
preferredLayoutSize
public java.awt.Dimension preferredLayoutSize(java.awt.Container target)
- Specified by:
 preferredLayoutSizein interfacejava.awt.LayoutManager
 
- 
minimumLayoutSize
public java.awt.Dimension minimumLayoutSize(java.awt.Container target)
- Specified by:
 minimumLayoutSizein interfacejava.awt.LayoutManager
 
- 
maximumLayoutSize
public java.awt.Dimension maximumLayoutSize(java.awt.Container target)
- Specified by:
 maximumLayoutSizein interfacejava.awt.LayoutManager2
 
- 
layoutContainer
public void layoutContainer(java.awt.Container target)
- Specified by:
 layoutContainerin interfacejava.awt.LayoutManager
 
- 
getLayers
protected com.google.common.collect.Multimap<java.lang.Integer,TableGridLayout.Entry> getLayers(java.util.List<java.awt.Component> components)
Returns a map of Layer indices to Entries for the supplied list of components. These components should haveTableGridLayoutConstraintsto determine what layer they belong to.- Parameters:
 components- A List of Components withTableGridLayoutConstraints. May be empty, but not null.- Returns:
 - A MultiMap of Layer indices to Entries. May be empty
 
 
- 
addLayoutComponent
public void addLayoutComponent(java.lang.String name, java.awt.Component component)- Specified by:
 addLayoutComponentin interfacejava.awt.LayoutManager
 
- 
addLayoutComponent
public void addLayoutComponent(java.awt.Component component, java.lang.Object constraint)- Specified by:
 addLayoutComponentin interfacejava.awt.LayoutManager2
 
- 
getLayoutAlignmentX
public float getLayoutAlignmentX(java.awt.Container target)
- Specified by:
 getLayoutAlignmentXin interfacejava.awt.LayoutManager2
 
- 
getLayoutAlignmentY
public float getLayoutAlignmentY(java.awt.Container target)
- Specified by:
 getLayoutAlignmentYin interfacejava.awt.LayoutManager2
 
- 
invalidateLayout
public void invalidateLayout(java.awt.Container target)
- Specified by:
 invalidateLayoutin interfacejava.awt.LayoutManager2
 
- 
removeLayoutComponent
public void removeLayoutComponent(java.awt.Component component)
- Specified by:
 removeLayoutComponentin interfacejava.awt.LayoutManager
 
 - 
 
 -