Side of Software
Print Preview Library 1.8.1

sos.preview
Interface ScalingLayoutManager

All Superinterfaces:
java.awt.LayoutManager
All Known Implementing Classes:
FitAllLayout, FitLayout, MatrixLayout, ZoomLayout

public interface ScalingLayoutManager
extends java.awt.LayoutManager

A layout manager that scales a container's components equally.

Since:
1.0

Method Summary
 double preferredScale(java.awt.Container container)
          Returns the scale of the specified container's components if the container were to get its preferred size.
 double scaleComponents(java.awt.Container container)
          Lays out the container's components and returns the scale factor.
 
Methods inherited from interface java.awt.LayoutManager
addLayoutComponent, layoutContainer, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent
 

Method Detail

preferredScale

public double preferredScale(java.awt.Container container)
Returns the scale of the specified container's components if the container were to get its preferred size.

Parameters:
container - container for which to calculate the scale
Returns:
the amount this layout manager would scale the specified container's components to achieve the preferred size

scaleComponents

public double scaleComponents(java.awt.Container container)
Lays out the container's components and returns the scale factor.

Parameters:
container - container for which to lay out its children
Returns:
the amount the specified container's children were scaled

Side of Software
Print Preview Library 1.8.1

Copyright 2003-07 Side of Software (SOS). All rights reserved.