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

Quick Search    Search Deep

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

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

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

An overlay layout where all the components have the same size.


Field Summary
protected  boolean hfilled_
           
protected  boolean ratio_
           
protected  boolean vfilled_
           
protected  float xalign_
           
protected  float yalign_
           
 
Constructor Summary
BuOverlayLayout()
           
BuOverlayLayout(boolean _hfilled, boolean _vfilled, boolean _ratio)
           
 
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 getHfilled()
           
 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 getRatio()
           
 boolean getVfilled()
           
 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 setHfilled(boolean _hfilled)
           
 void setRatio(boolean _ratio)
           
 void setVfilled(boolean _vfilled)
           
 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

hfilled_

protected boolean hfilled_

vfilled_

protected boolean vfilled_

ratio_

protected boolean ratio_

xalign_

protected float xalign_

yalign_

protected float yalign_
Constructor Detail

BuOverlayLayout

public BuOverlayLayout()

BuOverlayLayout

public BuOverlayLayout(boolean _hfilled,
                       boolean _vfilled,
                       boolean _ratio)
Method Detail

getHfilled

public boolean getHfilled()

setHfilled

public void setHfilled(boolean _hfilled)

getVfilled

public boolean getVfilled()

setVfilled

public void setVfilled(boolean _vfilled)

getRatio

public boolean getRatio()

setRatio

public void setRatio(boolean _ratio)

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