Copyright 2012-02-25 Werner Randelshofer

ch.randelshofer.gui
Class CornerLayout

java.lang.Object
  extended by java.awt.BorderLayout
      extended by ch.randelshofer.gui.CornerLayout
All Implemented Interfaces:
java.awt.LayoutManager, java.awt.LayoutManager2, java.io.Serializable

public class CornerLayout
extends java.awt.BorderLayout
implements java.awt.LayoutManager2, java.io.Serializable

A layout manager similar to BorderLayout but with additional slots for the four corners of a panel.

Version:
1.0 1999-10-19
Author:
Werner Randelshofer, Hausmatt 10, CH-6405 Immensee, Switzerland
See Also:
Serialized Form

Field Summary
static java.lang.String NORTHEAST
           
static java.lang.String NORTHWEST
           
static java.lang.String SOUTHEAST
           
static java.lang.String SOUTHWEST
           
 
Fields inherited from class java.awt.BorderLayout
AFTER_LAST_LINE, AFTER_LINE_ENDS, BEFORE_FIRST_LINE, BEFORE_LINE_BEGINS, CENTER, EAST, LINE_END, LINE_START, NORTH, PAGE_END, PAGE_START, SOUTH, WEST
 
Constructor Summary
CornerLayout()
           
 
Method Summary
 void addLayoutComponent(java.awt.Component comp, java.lang.Object constraints)
           
 void addLayoutComponent(java.lang.String name, java.awt.Component comp)
          Deprecated. replaced by addLayoutComponent(Component, Object).
 float getLayoutAlignmentX(java.awt.Container parent)
           
 float getLayoutAlignmentY(java.awt.Container parent)
           
 void invalidateLayout(java.awt.Container target)
           
 void layoutContainer(java.awt.Container target)
           
 java.awt.Dimension maximumLayoutSize(java.awt.Container target)
           
 java.awt.Dimension minimumLayoutSize(java.awt.Container target)
           
 java.awt.Dimension preferredLayoutSize(java.awt.Container target)
           
 void removeLayoutComponent(java.awt.Component comp)
           
 
Methods inherited from class java.awt.BorderLayout
getConstraints, getHgap, getLayoutComponent, getLayoutComponent, getVgap, setHgap, setVgap, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NORTHEAST

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

NORTHWEST

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

SOUTHEAST

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

SOUTHWEST

public static final java.lang.String SOUTHWEST
See Also:
Constant Field Values
Constructor Detail

CornerLayout

public CornerLayout()
Method Detail

addLayoutComponent

public void addLayoutComponent(java.awt.Component comp,
                               java.lang.Object constraints)
Specified by:
addLayoutComponent in interface java.awt.LayoutManager2
Overrides:
addLayoutComponent in class java.awt.BorderLayout

addLayoutComponent

public void addLayoutComponent(java.lang.String name,
                               java.awt.Component comp)
Deprecated. replaced by addLayoutComponent(Component, Object).

Specified by:
addLayoutComponent in interface java.awt.LayoutManager
Overrides:
addLayoutComponent in class java.awt.BorderLayout

removeLayoutComponent

public void removeLayoutComponent(java.awt.Component comp)
Specified by:
removeLayoutComponent in interface java.awt.LayoutManager
Overrides:
removeLayoutComponent in class java.awt.BorderLayout

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container target)
Specified by:
minimumLayoutSize in interface java.awt.LayoutManager
Overrides:
minimumLayoutSize in class java.awt.BorderLayout

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container target)
Specified by:
preferredLayoutSize in interface java.awt.LayoutManager
Overrides:
preferredLayoutSize in class java.awt.BorderLayout

maximumLayoutSize

public java.awt.Dimension maximumLayoutSize(java.awt.Container target)
Specified by:
maximumLayoutSize in interface java.awt.LayoutManager2
Overrides:
maximumLayoutSize in class java.awt.BorderLayout

getLayoutAlignmentX

public float getLayoutAlignmentX(java.awt.Container parent)
Specified by:
getLayoutAlignmentX in interface java.awt.LayoutManager2
Overrides:
getLayoutAlignmentX in class java.awt.BorderLayout

getLayoutAlignmentY

public float getLayoutAlignmentY(java.awt.Container parent)
Specified by:
getLayoutAlignmentY in interface java.awt.LayoutManager2
Overrides:
getLayoutAlignmentY in class java.awt.BorderLayout

invalidateLayout

public void invalidateLayout(java.awt.Container target)
Specified by:
invalidateLayout in interface java.awt.LayoutManager2
Overrides:
invalidateLayout in class java.awt.BorderLayout

layoutContainer

public void layoutContainer(java.awt.Container target)
Specified by:
layoutContainer in interface java.awt.LayoutManager
Overrides:
layoutContainer in class java.awt.BorderLayout

Copyright 2012-02-25 Werner Randelshofer