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

Quick Search    Search Deep

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

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

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

A better BorderLayout.


Field Summary
static java.lang.String CENTER
           
static java.lang.String EAST
           
private  int hgap_
           
static java.lang.String NORTH
           
static java.lang.String SOUTH
           
private  java.util.Hashtable table_
           
private  int vgap_
           
static java.lang.String WEST
           
 
Constructor Summary
BuBorderLayout()
           
BuBorderLayout(int _hgap, int _vgap)
           
 
Method Summary
 void addLayoutComponent(java.awt.Component _comp, java.lang.Object _constraints)
          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.
private  void addLayoutComponent2(java.lang.String _name, java.awt.Component _comp)
           
private  void adjustSize(java.awt.Dimension _r, java.awt.Dimension _d, java.lang.String _s)
           
 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.
private  java.awt.Dimension getMinimumSize(java.awt.Component _c)
           
private  java.awt.Dimension getPreferredSize(java.awt.Component _c)
           
 int getVgap()
           
 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 setVgap(int _vgap)
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

table_

private java.util.Hashtable table_

NORTH

public static final java.lang.String NORTH
See Also:
Constant Field Values

SOUTH

public static final java.lang.String SOUTH
See Also:
Constant Field Values

EAST

public static final java.lang.String EAST
See Also:
Constant Field Values

WEST

public static final java.lang.String WEST
See Also:
Constant Field Values

CENTER

public static final java.lang.String CENTER
See Also:
Constant Field Values

hgap_

private int hgap_

vgap_

private int vgap_
Constructor Detail

BuBorderLayout

public BuBorderLayout()

BuBorderLayout

public BuBorderLayout(int _hgap,
                      int _vgap)
Method Detail

getHgap

public int getHgap()

setHgap

public void setHgap(int _hgap)

getVgap

public int getVgap()

setVgap

public void setVgap(int _vgap)

addLayoutComponent

public void addLayoutComponent(java.awt.Component _comp,
                               java.lang.Object _constraints)
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

addLayoutComponent2

private void addLayoutComponent2(java.lang.String _name,
                                 java.awt.Component _comp)

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

getMinimumSize

private java.awt.Dimension getMinimumSize(java.awt.Component _c)

getPreferredSize

private java.awt.Dimension getPreferredSize(java.awt.Component _c)

adjustSize

private void adjustSize(java.awt.Dimension _r,
                        java.awt.Dimension _d,
                        java.lang.String _s)

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

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

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

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

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).