ImageRegion Class Reference

Inheritance diagram for ImageRegion:

Region List of all members.

Public Member Functions

 ImageRegion (String name, File imgFile, Units originX, Units originY)
 This constructor interprets the image as 72 pixels per physical inch.
 ImageRegion (String name, File imgFile, Units originX, Units originY, Pixels pixelConversion)
File getFile ()
double getHeightVal ()
double getPixelsPerInch ()
RegionRenderer getRenderer ()
double getWidthVal ()
double getX ()
 While the scale factors affect the size of the image, they do not affect the user-specified origins.
double getY ()
 While the scale factors affect the size of the image, they do not affect the user-specified origins.
String toString ()

Detailed Description

Represents an Image.

This software is distributed under the BSD License.

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

Definition at line 25 of file ImageRegion.java.


Constructor & Destructor Documentation

ImageRegion ( String  name,
File  imgFile,
Units  originX,
Units  originY 
)

This constructor interprets the image as 72 pixels per physical inch.

Use the alternate constructor if you feel otherwise. ;)

Parameters:
imgFile 
originX 
originY 

Definition at line 47 of file ImageRegion.java.

ImageRegion ( String  name,
File  imgFile,
Units  originX,
Units  originY,
Pixels  pixelConversion 
)

Parameters:
imgFile 
originX 
originY 
pixelConversion 

Definition at line 57 of file ImageRegion.java.

References Pixels.getPixelsPerInch(), Region.getUnits(), Units.getValue(), Units.getValueIn(), Region.setName(), and Region.setShape().


Member Function Documentation

File getFile (  ) 

Returns:

Definition at line 86 of file ImageRegion.java.

Referenced by ImageRenderer.renderToG2D().

double getHeightVal (  ) 

Returns:

Definition at line 93 of file ImageRegion.java.

References Region.scaleY.

Referenced by ImageRegion.toString().

double getPixelsPerInch (  ) 

Returns:

Definition at line 100 of file ImageRegion.java.

Referenced by ImageRenderer.renderToG2D().

RegionRenderer getRenderer (  ) 

See also:
edu.stanford.hci.r3.paper.Region.getRenderer()

Reimplemented from Region.

Definition at line 107 of file ImageRegion.java.

double getWidthVal (  ) 

Returns:

Definition at line 114 of file ImageRegion.java.

References Region.scaleX.

Referenced by ImageRegion.toString().

double getX (  ) 

While the scale factors affect the size of the image, they do not affect the user-specified origins.

Returns:

Definition at line 124 of file ImageRegion.java.

Referenced by ImageRenderer.renderToG2D(), and ImageRegion.toString().

double getY (  ) 

While the scale factors affect the size of the image, they do not affect the user-specified origins.

Returns:

Definition at line 134 of file ImageRegion.java.

Referenced by ImageRenderer.renderToG2D(), and ImageRegion.toString().

String toString (  ) 

See also:
edu.stanford.hci.r3.paper.Region.toString()

Reimplemented from Region.

Definition at line 141 of file ImageRegion.java.

References ImageRegion.getHeightVal(), Units.getUnitName(), Region.getUnits(), ImageRegion.getWidthVal(), ImageRegion.getX(), and ImageRegion.getY().


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