Package com.inductiveautomation.snap.ui
Class FlowLayout<T>
java.lang.Object
com.inductiveautomation.snap.ui.FlowLayout<T>
- All Implemented Interfaces:
- Cloneable
A layout that puts children one after another, wrapping when needed.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdds a layout child.clone()Standard clone implementation.abstract TReturns the individual child in this line.abstract intgetChildCount(T aParent) Returns the child count of given parent.abstract doubleReturns child height.abstract SPInsetsReturns the insets of the parent.abstract ObjectgetLayoutInfo(T aChild) Returns layout info (descriptor) for child.doublegetMinHeight(double aWidth) The min height for layout.doublegetMinWidth(double aHeight) The min width for layout.abstract doublegetParentHeight(T aParent) Returns parent height.abstract doublegetParentWidth(T aParent) Returns parent width.doublegetPrefHeight(double aWidth) The preferred height for layout.abstract doublegetPrefHeight(T aChild, double aValue) Returns child preferred height.doublegetPrefWidth(double aHeight) The preferred width for layout.abstract doublegetPrefWidth(T aChild, double aValue) Returns child preferred width.doubleReturns the spacing x.doubleReturns the spacing y.abstract doubleReturns child width.booleangetWraps()Returns whether layout wraps.abstract doubleReturns child x.abstract doubleReturns child y.voidlayoutChildren(T aParent) Layout children.voidremoveChild(T aChild) Removes a child.abstract voidSet child bounds.abstract voidsetLayoutInfo(T aChild, Object aLI) Sets layout info (descriptor) for child.voidsetSpacingX(double aValue) Sets the spacing x.voidsetSpacingY(double aValue) Sets the spacing y.voidsetWraps(boolean aValue) Sets whether layout wraps.
- 
Constructor Details- 
FlowLayoutpublic FlowLayout()
 
- 
- 
Method Details- 
getSpacingXpublic double getSpacingX()Returns the spacing x.
- 
setSpacingXpublic void setSpacingX(double aValue) Sets the spacing x.
- 
getSpacingYpublic double getSpacingY()Returns the spacing y.
- 
setSpacingYpublic void setSpacingY(double aValue) Sets the spacing y.
- 
getWrapspublic boolean getWraps()Returns whether layout wraps.
- 
setWrapspublic void setWraps(boolean aValue) Sets whether layout wraps.
- 
layoutChildrenLayout children.
- 
getPrefWidthpublic double getPrefWidth(double aHeight) The preferred width for layout.
- 
getPrefHeightpublic double getPrefHeight(double aWidth) The preferred height for layout.
- 
getMinWidthpublic double getMinWidth(double aHeight) The min width for layout.
- 
getMinHeightpublic double getMinHeight(double aWidth) The min height for layout.
- 
addChildAdds a layout child.
- 
removeChildRemoves a child.
- 
getParentWidthReturns parent width.
- 
getParentHeightReturns parent height.
- 
getChildCountReturns the child count of given parent.
- 
getChildReturns the individual child in this line.
- 
getInsetsReturns the insets of the parent.
- 
getLayoutInfoReturns layout info (descriptor) for child.
- 
setLayoutInfoSets layout info (descriptor) for child.
- 
getXReturns child x.
- 
getYReturns child y.
- 
getWidthReturns child width.
- 
getHeightReturns child height.
- 
setBoundsSet child bounds.
- 
getPrefWidthReturns child preferred width.
- 
getPrefHeightReturns child preferred height.
- 
cloneStandard clone implementation.
 
-