com.levigo.util.swing.effect
Class EffectLayout

java.lang.Object
  extended by com.levigo.util.swing.effect.EffectLayout
All Implemented Interfaces:
LayoutManager, LayoutManager2

public class EffectLayout
extends Object
implements LayoutManager2

Author:
hennejg

Nested Class Summary
static class EffectLayout.Constraints
           
static class EffectLayout.Edge
           
 
Constructor Summary
EffectLayout()
          Create a RollOutLayout which lays out the rollout components along the border of the base component, but doesn't care about the visible bounds.
EffectLayout(boolean useVisibleBounds)
          Create a RollOutLayout which lays out the rollout components either along the border of the base component or along the visible bounds, depending on the useVisibleBounds parameter.
 
Method Summary
 void addLayoutComponent(Component comp, Object constraints)
           
 void addLayoutComponent(String name, Component comp)
           
 float getLayoutAlignmentX(Container target)
           
 float getLayoutAlignmentY(Container target)
           
 void invalidateLayout(Container target)
           
 void layoutContainer(Container parent)
           
 Dimension maximumLayoutSize(Container target)
           
 Dimension minimumLayoutSize(Container parent)
           
 Dimension preferredLayoutSize(Container parent)
           
 void removeLayoutComponent(Component comp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EffectLayout

public EffectLayout()
Create a RollOutLayout which lays out the rollout components along the border of the base component, but doesn't care about the visible bounds.


EffectLayout

public EffectLayout(boolean useVisibleBounds)
Create a RollOutLayout which lays out the rollout components either along the border of the base component or along the visible bounds, depending on the useVisibleBounds parameter.

Method Detail

addLayoutComponent

public void addLayoutComponent(Component comp,
                               Object constraints)
Specified by:
addLayoutComponent in interface LayoutManager2

getLayoutAlignmentX

public float getLayoutAlignmentX(Container target)
Specified by:
getLayoutAlignmentX in interface LayoutManager2

getLayoutAlignmentY

public float getLayoutAlignmentY(Container target)
Specified by:
getLayoutAlignmentY in interface LayoutManager2

invalidateLayout

public void invalidateLayout(Container target)
Specified by:
invalidateLayout in interface LayoutManager2

maximumLayoutSize

public Dimension maximumLayoutSize(Container target)
Specified by:
maximumLayoutSize in interface LayoutManager2

addLayoutComponent

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

layoutContainer

public void layoutContainer(Container parent)
Specified by:
layoutContainer in interface LayoutManager

minimumLayoutSize

public Dimension minimumLayoutSize(Container parent)
Specified by:
minimumLayoutSize in interface LayoutManager

preferredLayoutSize

public Dimension preferredLayoutSize(Container parent)
Specified by:
preferredLayoutSize in interface LayoutManager

removeLayoutComponent

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


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.