Pixels Class Reference

Inheritance diagram for Pixels:

Units List of all members.

Public Member Functions

 Pixels ()
 One little square on your monitor, containing a color.
 Pixels (double numPixels)
 Pixels (double numPixels, double pixPerInch)
double getPixelsPerInch ()

Static Public Member Functions

static Pixels getPixelsPerInchObject (int ppi)

Static Public Attributes

static final String CONFIG_FILE_KEY = "pixels.pixelsperinch.file"
 The Key to access the configuration file for Pixels.
static final String CONFIG_FILE_VALUE = "/config/PixelsPerInch.xml"
static final Pixels ONE = new Pixels(1)
 The Identity Element representing one Pixel on a "default" screen at a default pixelsPerInch.

Protected Member Functions

Override double getNumberOfUnitsInOneInch ()

Detailed Description

Represents a screen based unit. This depends on the Pixels Per Inch of the screen, of course.

This software is distributed under the BSD License.

Author:
Ron B Yeh (ronyeh(AT)cs.stanford.edu)

Definition at line 19 of file Pixels.java.


Constructor & Destructor Documentation

Pixels (  ) 

One little square on your monitor, containing a color.

=)

Definition at line 69 of file Pixels.java.

Referenced by Pixels.getPixelsPerInchObject().

Pixels ( double  numPixels  ) 

Parameters:
numPixels 

Definition at line 76 of file Pixels.java.

Pixels ( double  numPixels,
double  pixPerInch 
)

Parameters:
numPixels 

Definition at line 83 of file Pixels.java.


Member Function Documentation

Override double getNumberOfUnitsInOneInch (  )  [protected, virtual]

See also:
edu.stanford.hci.r3.units.Units.getNumberOfUnitsInOneInch()

Implements Units.

Definition at line 92 of file Pixels.java.

double getPixelsPerInch (  ) 

Returns:
how many pixels per inch shall we use to interpret this value?

Definition at line 100 of file Pixels.java.

Referenced by ImageRegion.ImageRegion().

static Pixels getPixelsPerInchObject ( int  ppi  )  [static]

Parameters:
ppi 
Returns:

Definition at line 44 of file Pixels.java.

References Pixels.Pixels().


The documentation for this class was generated from the following file:
Generated on Sat Apr 14 18:21:45 2007 for R3 Paper Toolkit by  doxygen 1.4.7