Inheritance diagram for ImageRegion:
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 () |
This software is distributed under the BSD License.
Definition at line 25 of file ImageRegion.java.
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. ;)
imgFile | ||
originX | ||
originY |
Definition at line 47 of file ImageRegion.java.
ImageRegion | ( | String | name, | |
File | imgFile, | |||
Units | originX, | |||
Units | originY, | |||
Pixels | pixelConversion | |||
) |
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().
File getFile | ( | ) |
double getHeightVal | ( | ) |
Definition at line 93 of file ImageRegion.java.
References Region.scaleY.
Referenced by ImageRegion.toString().
double getPixelsPerInch | ( | ) |
Definition at line 100 of file ImageRegion.java.
Referenced by ImageRenderer.renderToG2D().
RegionRenderer getRenderer | ( | ) |
double getWidthVal | ( | ) |
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.
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.
Definition at line 134 of file ImageRegion.java.
Referenced by ImageRenderer.renderToG2D(), and ImageRegion.toString().
String 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().