Package com.inductiveautomation.snap.ui
Class FlowLayout<T>
- java.lang.Object
- 
- com.inductiveautomation.snap.ui.FlowLayout<T>
 
- 
- All Implemented Interfaces:
- java.lang.Cloneable
 
 public abstract class FlowLayout<T> extends java.lang.Object implements java.lang.CloneableA layout that puts children one after another, wrapping when needed.
- 
- 
Constructor SummaryConstructors Constructor Description FlowLayout()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddChild(T aChild, java.lang.Object aLayoutInfo)Adds a layout child.FlowLayoutclone()Standard clone implementation.abstract TgetChild(T aParent, int anIndex)Returns the individual child in this line.abstract intgetChildCount(T aParent)Returns the child count of given parent.abstract doublegetHeight(T aChild)Returns child height.abstract SPInsetsgetInsets(T aParent)Returns the insets of the parent.abstract java.lang.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.doublegetSpacingX()Returns the spacing x.doublegetSpacingY()Returns the spacing y.abstract doublegetWidth(T aChild)Returns child width.booleangetWraps()Returns whether layout wraps.abstract doublegetX(T aChild)Returns child x.abstract doublegetY(T aChild)Returns child y.voidlayoutChildren(T aParent)Layout children.voidremoveChild(T aChild)Removes a child.abstract voidsetBounds(T aChild, double anX, double aY, double aWidth, double aHeight)Set child bounds.abstract voidsetLayoutInfo(T aChild, java.lang.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.
 
- 
- 
- 
Method Detail- 
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.
 - 
layoutChildrenpublic void layoutChildren(T aParent) Layout 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.
 - 
addChildpublic void addChild(T aChild, java.lang.Object aLayoutInfo) Adds a layout child.
 - 
removeChildpublic void removeChild(T aChild) Removes a child.
 - 
getParentWidthpublic abstract double getParentWidth(T aParent) Returns parent width.
 - 
getParentHeightpublic abstract double getParentHeight(T aParent) Returns parent height.
 - 
getChildCountpublic abstract int getChildCount(T aParent) Returns the child count of given parent.
 - 
getChildpublic abstract T getChild(T aParent, int anIndex) Returns the individual child in this line.
 - 
getLayoutInfopublic abstract java.lang.Object getLayoutInfo(T aChild) Returns layout info (descriptor) for child.
 - 
setLayoutInfopublic abstract void setLayoutInfo(T aChild, java.lang.Object aLI) Sets layout info (descriptor) for child.
 - 
getXpublic abstract double getX(T aChild) Returns child x.
 - 
getYpublic abstract double getY(T aChild) Returns child y.
 - 
getWidthpublic abstract double getWidth(T aChild) Returns child width.
 - 
getHeightpublic abstract double getHeight(T aChild) Returns child height.
 - 
setBoundspublic abstract void setBounds(T aChild, double anX, double aY, double aWidth, double aHeight) Set child bounds.
 - 
getPrefWidthpublic abstract double getPrefWidth(T aChild, double aValue) Returns child preferred width.
 - 
getPrefHeightpublic abstract double getPrefHeight(T aChild, double aValue) Returns child preferred height.
 - 
clonepublic FlowLayout clone() Standard clone implementation.- Overrides:
- clonein class- java.lang.Object
 
 
- 
 
-