public class TJScalingFactor
extends java.lang.Object
| Constructor and Description | 
|---|
| TJScalingFactor(int num,
               int denom) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(TJScalingFactor other)Returns true or false, depending on whether this instance and
  otherhave the same numerator and denominator. | 
| int | getDenom()Returns denominator | 
| int | getNum()Returns numerator | 
| int | getScaled(int dimension)Returns the scaled value of  dimension. | 
| boolean | isOne()Returns true or false, depending on whether this instance is equal to
 1/1. | 
public TJScalingFactor(int num,
               int denom)
                throws java.lang.Exception
java.lang.Exceptionpublic int getNum()
public int getDenom()
public int getScaled(int dimension)
dimension.  This function
 performs the integer equivalent of
 ceil(dimension * scalingFactor).dimension.public boolean equals(TJScalingFactor other)
other have the same numerator and denominator.other have the same numerator and denominator.public boolean isOne()