org.fuin.utils4swing.layout.scalable
Class ScalableLayout2

java.lang.Object
  extended by org.fuin.utils4swing.layout.scalable.AbstractScalableLayout
      extended by org.fuin.utils4swing.layout.scalable.ScalableLayout2
All Implemented Interfaces:
LayoutManager, LayoutManager2
Direct Known Subclasses:
DefaultScalableLayout2, ScalableBorderLayout

public abstract class ScalableLayout2
extends AbstractScalableLayout
implements LayoutManager2

A layout manager that resizes the content along to a given factor.


Constructor Summary
ScalableLayout2(ScalableLayoutRegistry registry, Container container)
          Constructor with registry and container.
 
Method Summary
 void addLayoutComponent(Component comp, Object constraints)
          
 float getLayoutAlignmentX(Container target)
          
 float getLayoutAlignmentY(Container target)
          
 LayoutManager2 getOriginalLayout()
          Returns the original layout manager.
 void invalidateLayout(Container target)
          
 Dimension maximumLayoutSize(Container target)
          
 
Methods inherited from class org.fuin.utils4swing.layout.scalable.AbstractScalableLayout
addLayoutComponent, addScaledComponent, afterComponentsScaled, findScaledComponent, getContainer, getFactor, layoutContainer, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent, setFactor, setFactorRecursive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.awt.LayoutManager
addLayoutComponent, layoutContainer, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent
 

Constructor Detail

ScalableLayout2

public ScalableLayout2(ScalableLayoutRegistry registry,
                       Container container)
Constructor with registry and container.

Parameters:
registry - Registry to use.
container - Container this layout should be applied to.
Method Detail

addLayoutComponent

public final void addLayoutComponent(Component comp,
                                     Object constraints)

Specified by:
addLayoutComponent in interface LayoutManager2

maximumLayoutSize

public final Dimension maximumLayoutSize(Container target)

Specified by:
maximumLayoutSize in interface LayoutManager2

getLayoutAlignmentX

public final float getLayoutAlignmentX(Container target)

Specified by:
getLayoutAlignmentX in interface LayoutManager2

getLayoutAlignmentY

public final float getLayoutAlignmentY(Container target)

Specified by:
getLayoutAlignmentY in interface LayoutManager2

invalidateLayout

public final void invalidateLayout(Container target)

Specified by:
invalidateLayout in interface LayoutManager2

getOriginalLayout

public final LayoutManager2 getOriginalLayout()
Returns the original layout manager.

Returns:
Layout Manager 2.


Copyright © 2011 Future Invent Informationsmanagement GmbH. All Rights Reserved.