chrriis.uihierarchy.unit
Class Pixel.PixelUnit

java.lang.Object
  extended bychrriis.uihierarchy.unit.Unit
      extended bychrriis.uihierarchy.unit.Pixel.PixelUnit
Enclosing class:
Pixel

public static class Pixel.PixelUnit
extends Unit

A unit representing a pixel.

Version:
1.0 2005.02.01
Author:
Christopher Deckers (chrriis@brainlex.com)

Method Summary
 double doubleValue(Unit unit, double value)
          Get the double value resulting from the conversion of the value from the specified unit.
 String[] getNames()
          Get the names representing the unit.
 int intValue(Unit unit, double value)
          Get the int value resulting from the conversion of the value from the specified unit.
 
Methods inherited from class chrriis.uihierarchy.unit.Unit
getUnit, registerUnit, registerUnit
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

intValue

public int intValue(Unit unit,
                    double value)
Get the int value resulting from the conversion of the value from the specified unit.

Parameters:
unit - The unit from which to convert.
value - The value to convert.
Returns:
The result of the conversion.

doubleValue

public double doubleValue(Unit unit,
                          double value)
Get the double value resulting from the conversion of the value from the specified unit.

Parameters:
unit - The unit from which to convert.
value - The value to convert.
Returns:
The result of the conversion.

getNames

public String[] getNames()
Get the names representing the unit.

Specified by:
getNames in class Unit
Returns:
An array containing the names.