edu.stanford.hci.r3.tools.design.util
Class Regions

java.lang.Object
  extended by edu.stanford.hci.r3.tools.design.util.Regions

public class Regions
extends java.lang.Object

This software is distributed under the BSD License.


Constructor Summary
Regions()
           
 
Method Summary
static double makeItFit(double width, double height, double maxWidth, double maxHeight)
          Returns the scale necessary to make width/height fit inside maxWidth/maxHeight.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Regions

public Regions()
Method Detail

makeItFit

public static double makeItFit(double width,
                               double height,
                               double maxWidth,
                               double maxHeight)
Returns the scale necessary to make width/height fit inside maxWidth/maxHeight.

Parameters:
width -
height -
maxWidth -
maxHeight -
Returns:

Copyright 2006 Stanford University