Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.memoire.bu
Class BuGridLayout  view BuGridLayout download BuGridLayout.java

java.lang.Object
  extended bycom.memoire.bu.BuGridLayout
All Implemented Interfaces:
java.awt.LayoutManager, java.awt.LayoutManager2, java.io.Serializable

public class BuGridLayout
extends java.lang.Object
implements java.awt.LayoutManager2, java.io.Serializable

Lays out in a grid a set of components. Not like the java.awt.GridLayout, rows may have different heigths and columns may have different widths.


Field Summary
protected  boolean cfilled_
           
protected  int columns_
           
protected  boolean hfilled_
           
protected  int hgap_
           
protected  boolean rfilled_
           
protected  boolean vfilled_
           
protected  int vgap_
           
protected  float xalign_
           
protected  float yalign_
           
 
Constructor Summary
BuGridLayout()
           
BuGridLayout(int _columns)
           
BuGridLayout(int _columns, int _hgap, int _vgap)
           
BuGridLayout(int _columns, int _hgap, int _vgap, boolean _hfilled, boolean _vfilled)
           
BuGridLayout(int _columns, int _hgap, int _vgap, boolean _hfilled, boolean _vfilled, boolean _cfilled, boolean _rfilled)
           
 
Method Summary
 void addLayoutComponent(java.awt.Component _comp, java.lang.Object _cstr)
          Adds the specified component to the layout, with the specified constraints object.
 void addLayoutComponent(java.lang.String _name, java.awt.Component _comp)
          Adds the specified component to the layout group.
 boolean getCfilled()
           
 int getColumns()
           
 boolean getHfilled()
           
 int getHgap()
           
 float getLayoutAlignmentX(java.awt.Container _parent)
          Returns the preferred X axis alignment for the specified target container.
 float getLayoutAlignmentY(java.awt.Container _parent)
          Returns the preferred Y axis alignment for the specified target container.
 boolean getRfilled()
           
 boolean getVfilled()
           
 int getVgap()
           
 float getXalign()
           
 float getYalign()
           
 void invalidateLayout(java.awt.Container _parent)
          Forces the layout manager to purge any cached information about the layout of the target container.
 void layoutContainer(java.awt.Container _parent)
          Lays out the components in the given container.
 java.awt.Dimension maximumLayoutSize(java.awt.Container _parent)
          Determines the maximum size of the specified target container.
 java.awt.Dimension minimumLayoutSize(java.awt.Container _parent)
          Calculates the minimum size for this container, taking into account the components it contains.
 java.awt.Dimension preferredLayoutSize(java.awt.Container _parent)
          Calculates the preferred size for this container, taking into account the components it contains.
 void removeLayoutComponent(java.awt.Component _comp)
          Removes the specified component from the layout group.
 void setCfilled(boolean _cfilled)
           
 void setColumns(int _columns)
           
 void setHfilled(boolean _hfilled)
           
 void setHgap(int _hgap)
           
 void setRfilled(boolean _rfilled)
           
 void setVfilled(boolean _vfilled)
           
 void setVgap(int _vgap)
           
 void setXalign(float _xalign)
           
 void setYalign(float _yalign)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

columns_

protected int columns_

hgap_

protected int hgap_

vgap_

protected int vgap_

hfilled_

protected boolean hfilled_

vfilled_

protected boolean vfilled_

cfilled_

protected boolean cfilled_

rfilled_

protected boolean rfilled_

xalign_

protected float xalign_

yalign_

protected float yalign_
Constructor Detail

BuGridLayout

public BuGridLayout()

BuGridLayout

public BuGridLayout(int _columns)

BuGridLayout

public BuGridLayout(int _columns,
                    int _hgap,
                    int _vgap)

BuGridLayout

public BuGridLayout(int _columns,
                    int _hgap,
                    int _vgap,
                    boolean _hfilled,
                    boolean _vfilled)

BuGridLayout

public BuGridLayout(int _columns,
                    int _hgap,
                    int _vgap,
                    boolean _hfilled,
                    boolean _vfilled,
                    boolean _cfilled,
                    boolean _rfilled)
Method Detail

getColumns

public int getColumns()

setColumns

public void setColumns(int _columns)

getHgap

public int getHgap()

setHgap

public void setHgap(int _hgap)

getVgap

public int getVgap()

setVgap

public void setVgap(int _vgap)

getHfilled

public boolean getHfilled()

setHfilled

public void setHfilled(boolean _hfilled)

getVfilled

public boolean getVfilled()

setVfilled

public void setVfilled(boolean _vfilled)

getCfilled

public boolean getCfilled()

setCfilled

public void setCfilled(boolean _cfilled)

getRfilled

public boolean getRfilled()

setRfilled

public void setRfilled(boolean _rfilled)

getXalign

public float getXalign()

setXalign

public void setXalign(float _xalign)

getYalign

public float getYalign()

setYalign

public void setYalign(float _yalign)

addLayoutComponent

public void addLayoutComponent(java.awt.Component _comp,
                               java.lang.Object _cstr)
Description copied from interface: java.awt.LayoutManager2
Adds the specified component to the layout, with the specified constraints object.

Specified by:
addLayoutComponent in interface java.awt.LayoutManager2

addLayoutComponent

public void addLayoutComponent(java.lang.String _name,
                               java.awt.Component _comp)
Description copied from interface: java.awt.LayoutManager
Adds the specified component to the layout group.

Specified by:
addLayoutComponent in interface java.awt.LayoutManager

removeLayoutComponent

public void removeLayoutComponent(java.awt.Component _comp)
Description copied from interface: java.awt.LayoutManager
Removes the specified component from the layout group.

Specified by:
removeLayoutComponent in interface java.awt.LayoutManager

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container _parent)
Description copied from interface: java.awt.LayoutManager
Calculates the minimum size for this container, taking into account the components it contains.

Specified by:
minimumLayoutSize in interface java.awt.LayoutManager

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container _parent)
Description copied from interface: java.awt.LayoutManager
Calculates the preferred size for this container, taking into account the components it contains.

Specified by:
preferredLayoutSize in interface java.awt.LayoutManager

maximumLayoutSize

public java.awt.Dimension maximumLayoutSize(java.awt.Container _parent)
Description copied from interface: java.awt.LayoutManager2
Determines the maximum size of the specified target container.

Specified by:
maximumLayoutSize in interface java.awt.LayoutManager2

invalidateLayout

public void invalidateLayout(java.awt.Container _parent)
Description copied from interface: java.awt.LayoutManager2
Forces the layout manager to purge any cached information about the layout of the target container. This will force it to be recalculated.

Specified by:
invalidateLayout in interface java.awt.LayoutManager2

getLayoutAlignmentX

public float getLayoutAlignmentX(java.awt.Container _parent)
Description copied from interface: java.awt.LayoutManager2
Returns the preferred X axis alignment for the specified target container. This value will range from 0 to 1 where 0 is alignment closest to the origin, 0.5 is centered, and 1 is aligned furthest from the origin.

Specified by:
getLayoutAlignmentX in interface java.awt.LayoutManager2

getLayoutAlignmentY

public float getLayoutAlignmentY(java.awt.Container _parent)
Description copied from interface: java.awt.LayoutManager2
Returns the preferred Y axis alignment for the specified target container. This value will range from 0 to 1 where 0 is alignment closest to the origin, 0.5 is centered, and 1 is aligned furthest from the origin.

Specified by:
getLayoutAlignmentY in interface java.awt.LayoutManager2

layoutContainer

public void layoutContainer(java.awt.Container _parent)
Description copied from interface: java.awt.LayoutManager
Lays out the components in the given container.

Specified by:
layoutContainer in interface java.awt.LayoutManager