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

Quick Search    Search Deep

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

java.lang.Object
  extended bycom.memoire.bu.BuButtonLayout
All Implemented Interfaces:
java.awt.LayoutManager, java.awt.LayoutManager2, java.io.Serializable, javax.swing.SwingConstants

public class BuButtonLayout
extends java.lang.Object
implements java.awt.LayoutManager2, java.io.Serializable, javax.swing.SwingConstants

Lays out horizontally a set of components (buttons) with the same size and aligned on right.


Field Summary
protected  int halign_
           
protected  int hgap_
           
 
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
BuButtonLayout()
           
BuButtonLayout(int _hgap, int _halign)
           
 
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.
 int getHgap()
           
 int getHorizontalAlignment()
           
 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.
 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 setHgap(int _hgap)
           
 void setHorizontalAlignment(int _halign)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hgap_

protected int hgap_

halign_

protected int halign_
Constructor Detail

BuButtonLayout

public BuButtonLayout()

BuButtonLayout

public BuButtonLayout(int _hgap,
                      int _halign)
Method Detail

getHgap

public int getHgap()

setHgap

public void setHgap(int _hgap)

getHorizontalAlignment

public int getHorizontalAlignment()

setHorizontalAlignment

public void setHorizontalAlignment(int _halign)

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