JHotDraw 6.0b1

org.jhotdraw.util
Class PaletteLayout

java.lang.Object
  extended by org.jhotdraw.util.PaletteLayout
All Implemented Interfaces:
java.awt.LayoutManager

public class PaletteLayout
extends java.lang.Object
implements java.awt.LayoutManager

A custom layout manager for the palette.

See Also:
PaletteButton

Constructor Summary
PaletteLayout(int gap)
          Initializes the palette layout.
PaletteLayout(int gap, java.awt.Point border)
           
PaletteLayout(int gap, java.awt.Point border, boolean vertical)
           
 
Method Summary
 void addLayoutComponent(java.lang.String name, java.awt.Component comp)
           
 void layoutContainer(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.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PaletteLayout

public PaletteLayout(int gap)
Initializes the palette layout.

Parameters:
gap - the gap between palette entries.

PaletteLayout

public PaletteLayout(int gap,
                     java.awt.Point border)

PaletteLayout

public PaletteLayout(int gap,
                     java.awt.Point border,
                     boolean vertical)
Method Detail

addLayoutComponent

public void addLayoutComponent(java.lang.String name,
                               java.awt.Component comp)
Specified by:
addLayoutComponent in interface java.awt.LayoutManager

removeLayoutComponent

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

preferredLayoutSize

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

minimumLayoutSize

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

layoutContainer

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

JHotDraw 6.0b1