Class TableGridLayout
java.lang.Object
com.inductiveautomation.factorypmi.application.components.calendar.layouts.TableGridLayout
- All Implemented Interfaces:
- LayoutManager,- LayoutManager2
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected intstatic final StringComponents should store their TableGridLayoutConstraint object as a user object with this keyprotected intprotected intprotected intprotected intprotected intprotected intprotected int
- 
Constructor SummaryConstructorsConstructorDescriptionTableGridLayout(int rows, int cols, int x1offset, int y1offset, int x2offset, int y2offset, int rowTicks, int fakeRows) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddLayoutComponent(Component component, Object constraint) voidaddLayoutComponent(String name, Component component) protected com.google.common.collect.Multimap<Integer,TableGridLayout.Entry> Returns a map of Layer indices to Entries for the supplied list of components.floatgetLayoutAlignmentX(Container target) floatgetLayoutAlignmentY(Container target) voidinvalidateLayout(Container target) voidlayoutContainer(Container target) maximumLayoutSize(Container target) minimumLayoutSize(Container target) preferredLayoutSize(Container target) voidremoveLayoutComponent(Component component) 
- 
Field Details- 
CONSTRAINT_KEYComponents should store their TableGridLayoutConstraint object as a user object with this key- See Also:
 
- 
rowsprotected int rows
- 
colsprotected int cols
- 
x1offsetprotected int x1offset
- 
y1offsetprotected int y1offset
- 
x2offsetprotected int x2offset
- 
y2offsetprotected int y2offset
- 
rowTicksprotected int rowTicks
- 
fakeRowsprotected int fakeRows
 
- 
- 
Constructor Details- 
TableGridLayoutpublic TableGridLayout()
- 
TableGridLayoutpublic TableGridLayout(int rows, int cols, int x1offset, int y1offset, int x2offset, int y2offset, int rowTicks, int fakeRows) 
 
- 
- 
Method Details- 
preferredLayoutSize- Specified by:
- preferredLayoutSizein interface- LayoutManager
 
- 
minimumLayoutSize- Specified by:
- minimumLayoutSizein interface- LayoutManager
 
- 
maximumLayoutSize- Specified by:
- maximumLayoutSizein interface- LayoutManager2
 
- 
layoutContainer- Specified by:
- layoutContainerin interface- LayoutManager
 
- 
getLayersprotected com.google.common.collect.Multimap<Integer,TableGridLayout.Entry> getLayers(List<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 with- TableGridLayoutConstraints. May be empty, but not null.
- Returns:
- A MultiMap of Layer indices to Entries. May be empty
 
- 
addLayoutComponent- Specified by:
- addLayoutComponentin interface- LayoutManager
 
- 
addLayoutComponent- Specified by:
- addLayoutComponentin interface- LayoutManager2
 
- 
getLayoutAlignmentX- Specified by:
- getLayoutAlignmentXin interface- LayoutManager2
 
- 
getLayoutAlignmentY- Specified by:
- getLayoutAlignmentYin interface- LayoutManager2
 
- 
invalidateLayout- Specified by:
- invalidateLayoutin interface- LayoutManager2
 
- 
removeLayoutComponent- Specified by:
- removeLayoutComponentin interface- LayoutManager
 
 
-