Class BoxLayoutAlgorithm
java.lang.Object
org.eclipse.zest.layouts.algorithms.AbstractLayoutAlgorithm
org.eclipse.zest.layouts.algorithms.GridLayoutAlgorithm
org.eclipse.zest.layouts.algorithms.BoxLayoutAlgorithm
- All Implemented Interfaces:
- LayoutAlgorithm
Layout algorithm that places all elements in one column or one row, depending
 on set orientation.
- Since:
- 2.0
- 
Nested Class SummaryNested classes/interfaces inherited from class org.eclipse.zest.layouts.algorithms.GridLayoutAlgorithmGridLayoutAlgorithm.Zest1
- 
Field SummaryFields inherited from class org.eclipse.zest.layouts.algorithms.GridLayoutAlgorithmaspectRatio, childrenHeight, childrenWidth, cols, colWidth, numChildren, offsetX, offsetY, rowHeight, rowPadding, rowsFields inherited from class org.eclipse.zest.layouts.algorithms.AbstractLayoutAlgorithmcontext
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected int[]calculateNumberOfRowsAndCols(int numChildren, double boundX, double boundY, double boundWidth, double boundHeight) Calculates and returns an array containing the number of columns, followed by the number of rowsintvoidsetOrientation(int orientation) Methods inherited from class org.eclipse.zest.layouts.algorithms.GridLayoutAlgorithmapplyLayout, applyLayoutInternal, calculateGrid, calculateNodeSize, calculateNumberOfRowsAndCols_rectangular, calculateNumberOfRowsAndCols_square, isResizing, setAspectRatio, setResizing, setRowPaddingMethods inherited from class org.eclipse.zest.layouts.algorithms.AbstractLayoutAlgorithmsetLayoutContext
- 
Constructor Details- 
BoxLayoutAlgorithmpublic BoxLayoutAlgorithm()
- 
BoxLayoutAlgorithmpublic BoxLayoutAlgorithm(int orientation) 
 
- 
- 
Method Details- 
getOrientationpublic int getOrientation()
- 
setOrientationpublic void setOrientation(int orientation) 
- 
calculateNumberOfRowsAndColsprotected int[] calculateNumberOfRowsAndCols(int numChildren, double boundX, double boundY, double boundWidth, double boundHeight) Description copied from class:GridLayoutAlgorithmCalculates and returns an array containing the number of columns, followed by the number of rows- Overrides:
- calculateNumberOfRowsAndColsin class- GridLayoutAlgorithm
 
 
-