JUICe

com.lafros.juice.app
Class DialogLayout

java.lang.Object
  extended by com.lafros.juice.app.DialogLayout
All Implemented Interfaces:
LayoutManager

public class DialogLayout
extends Object
implements LayoutManager

layout-manager featuring the ability to position GUI-components depending on their type.

Note that this class is based on one described in the book 'Swing' (first edition) by Matthew Robinson and Pavel Vorobiev. (See http://www.manning.com.)

Version:
$Id: DialogLayout.java 1481 2007-04-04 11:37:38Z rob $

Constructor Summary
DialogLayout()
          creates new instance.
DialogLayout(int hGap, int vGap)
          creates new instance.
 
Method Summary
 void addLayoutComponent(String name, Component comp)
          impl'ts LayoutManager.
 int getHGap()
          horizontal gap between Components/pixels.
 int getVGap()
          vertical gap between Components/pixels.
 void layoutContainer(Container parent)
          impl'ts LayoutManager.
 Dimension minimumLayoutSize(Container parent)
          impl'ts LayoutManager.
 Dimension preferredLayoutSize(Container parent)
          impl'ts LayoutManager.
 void removeLayoutComponent(Component comp)
          impl'ts LayoutManager.
 String toString()
          overrides Object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DialogLayout

public DialogLayout()
creates new instance.


DialogLayout

public DialogLayout(int hGap,
                    int vGap)
creates new instance.

Parameters:
hGap - horizontal gap between Components/pixels
vGap - vertical gap between Components/pixels
Method Detail

addLayoutComponent

public void addLayoutComponent(String name,
                               Component comp)
impl'ts LayoutManager.

Specified by:
addLayoutComponent in interface LayoutManager

removeLayoutComponent

public void removeLayoutComponent(Component comp)
impl'ts LayoutManager.

Specified by:
removeLayoutComponent in interface LayoutManager

preferredLayoutSize

public Dimension preferredLayoutSize(Container parent)
impl'ts LayoutManager.

Specified by:
preferredLayoutSize in interface LayoutManager

minimumLayoutSize

public Dimension minimumLayoutSize(Container parent)
impl'ts LayoutManager.

Specified by:
minimumLayoutSize in interface LayoutManager

layoutContainer

public void layoutContainer(Container parent)
impl'ts LayoutManager.

Specified by:
layoutContainer in interface LayoutManager

getHGap

public int getHGap()
horizontal gap between Components/pixels.


getVGap

public int getVGap()
vertical gap between Components/pixels.


toString

public String toString()
overrides Object.

Overrides:
toString in class Object

JUICe

Copyright © 2001-2008 Latterfrosken Software Development Limited. All Rights Reserved.