net.sf.magicproject.ui.layout
Class AttachmentLayout

java.lang.Object
  extended by net.sf.magicproject.ui.layout.AttachmentLayout
All Implemented Interfaces:
java.awt.LayoutManager

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

Author:
Fabrice Daugan

Field Summary
static int PIXEL_UNTIT
          Amount of pixels increased/decreased for each mouse wheel unit.
 
Constructor Summary
AttachmentLayout()
          Creates a new instance of AttachmentLayout
 
Method Summary
 void addLayoutComponent(java.lang.String name, java.awt.Component comp)
           
 void decreaseCardLayout(int amount)
          Decrease the amount of units used to separate nested cards.
 void increaseCardLayout(int amount)
          Increase the amount of units used to separate nested cards.
 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PIXEL_UNTIT

public static final int PIXEL_UNTIT
Amount of pixels increased/decreased for each mouse wheel unit.

See Also:
Constant Field Values
Constructor Detail

AttachmentLayout

public AttachmentLayout()
Creates a new instance of AttachmentLayout

Method Detail

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

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

decreaseCardLayout

public void decreaseCardLayout(int amount)
Decrease the amount of units used to separate nested cards.

Parameters:
amount - the amount of units.

increaseCardLayout

public void increaseCardLayout(int amount)
Increase the amount of units used to separate nested cards.

Parameters:
amount - the amount of units.


Copyright © 2003-2007 Magic-Project. All Rights Reserved.