com.alee.extended.layout
Class WrapFlowLayout

java.lang.Object
  extended by com.alee.extended.layout.AbstractLayoutManager
      extended by com.alee.extended.layout.WrapFlowLayout
All Implemented Interfaces:
java.awt.LayoutManager, java.awt.LayoutManager2, javax.swing.SwingConstants

public class WrapFlowLayout
extends AbstractLayoutManager
implements javax.swing.SwingConstants

User: mgarin Date: 07.10.11 Time: 15:14


Field Summary
protected  boolean fillWidth
           
protected  boolean fitWidth
           
protected  int halign
           
protected  int hgap
           
protected  int maxHeight
           
protected  int maxWidth
           
protected  java.util.ArrayList<RowData> rowsData
           
protected  int valign
           
protected  int vgap
           
protected  boolean wrapEachComponent
           
 
Fields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
Constructor Summary
WrapFlowLayout()
           
WrapFlowLayout(boolean fillWidth)
           
WrapFlowLayout(boolean fillWidth, int hgap, int vgap)
           
WrapFlowLayout(int hgap, int vgap)
           
 
Method Summary
 int getHalign()
           
 int getHgap()
           
 int getMaxHeight()
           
 int getMaxWidth()
           
 java.util.ArrayList<RowData> getRowsData()
           
protected  int getStartX(java.awt.Container parent, java.awt.Insets insets, RowData row)
           
protected  int getStartY(java.awt.Container parent, java.awt.Insets insets)
           
 int getValign()
           
 int getVgap()
           
 boolean isFillWidth()
           
 boolean isFitWidth()
           
 boolean isWrapEachComponent()
           
 void layoutContainer(java.awt.Container parent)
          
 java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
          
 java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
          
 void setFillWidth(boolean fillWidth)
           
 void setFitWidth(boolean fitWidth)
           
 void setHalign(int halign)
           
 void setHgap(int hgap)
           
 void setValign(int valign)
           
 void setVgap(int vgap)
           
 void setWrapEachComponent(boolean wrapEachComponent)
           
 
Methods inherited from class com.alee.extended.layout.AbstractLayoutManager
addComponent, addLayoutComponent, addLayoutComponent, getLayoutAlignmentX, getLayoutAlignmentY, invalidateLayout, maximumLayoutSize, removeComponent, removeLayoutComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fitWidth

protected boolean fitWidth

fillWidth

protected boolean fillWidth

hgap

protected int hgap

vgap

protected int vgap

halign

protected int halign

valign

protected int valign

wrapEachComponent

protected boolean wrapEachComponent

maxWidth

protected int maxWidth

maxHeight

protected int maxHeight

rowsData

protected java.util.ArrayList<RowData> rowsData
Constructor Detail

WrapFlowLayout

public WrapFlowLayout()

WrapFlowLayout

public WrapFlowLayout(boolean fillWidth)

WrapFlowLayout

public WrapFlowLayout(int hgap,
                      int vgap)

WrapFlowLayout

public WrapFlowLayout(boolean fillWidth,
                      int hgap,
                      int vgap)
Method Detail

isFitWidth

public boolean isFitWidth()

setFitWidth

public void setFitWidth(boolean fitWidth)

isFillWidth

public boolean isFillWidth()

setFillWidth

public void setFillWidth(boolean fillWidth)

getHgap

public int getHgap()

setHgap

public void setHgap(int hgap)

getVgap

public int getVgap()

setVgap

public void setVgap(int vgap)

getHalign

public int getHalign()

setHalign

public void setHalign(int halign)

getValign

public int getValign()

setValign

public void setValign(int valign)

isWrapEachComponent

public boolean isWrapEachComponent()

setWrapEachComponent

public void setWrapEachComponent(boolean wrapEachComponent)

getMaxWidth

public int getMaxWidth()

getMaxHeight

public int getMaxHeight()

getRowsData

public java.util.ArrayList<RowData> getRowsData()

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)

Specified by:
preferredLayoutSize in interface java.awt.LayoutManager

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)

Specified by:
minimumLayoutSize in interface java.awt.LayoutManager
Overrides:
minimumLayoutSize in class AbstractLayoutManager

layoutContainer

public void layoutContainer(java.awt.Container parent)

Specified by:
layoutContainer in interface java.awt.LayoutManager

getStartX

protected int getStartX(java.awt.Container parent,
                        java.awt.Insets insets,
                        RowData row)

getStartY

protected int getStartY(java.awt.Container parent,
                        java.awt.Insets insets)