|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Graphic
Represents a graphic file.
The implementations of this interface are not expected to be shared between threads.
| Field Summary | |
|---|---|
static int |
TYPE_RASTER
This graphic is of the raster type. |
static int |
TYPE_RASTERIZABLE
This graphic is of the vector type but it will be rendered as a raster during the conversion. |
static int |
TYPE_VECTOR
This graphic is of the vector type and it cannot be rasterized. |
| Method Summary | |
|---|---|
Object |
getClientData()
Returns opaque client data associated to this graphic. |
String |
getFormat()
Returns the MIME type of this graphic. |
int |
getHeight()
Returns the height in pixels of this graphic. |
String |
getLocation()
Returns the location of this graphic file. |
int |
getType()
Returns the type of this graphic. |
int |
getWidth()
Returns the width in pixels of this graphic. |
double |
getXResolution()
Returns the horizontal resolution in DPI if known; a negative or null number otherwise. |
double |
getYResolution()
Returns the vertical resolution in DPI if known; a negative or null number otherwise. |
| Field Detail |
|---|
static final int TYPE_VECTOR
Vector graphics are never prescaled.
Converter.setProperty(java.lang.String, java.lang.String),
Constant Field Valuesstatic final int TYPE_RASTER
Raster graphics may be prescaled depending the value of the value of the prescaleImages Converter property.
Converter.setProperty(java.lang.String, java.lang.String),
Constant Field Valuesstatic final int TYPE_RASTERIZABLE
Rasterizable graphics are always prescaled (by the proper renderer such as Batik; not by XMLmind XSL-FO Converter).
Converter.setProperty(java.lang.String, java.lang.String),
Constant Field Values| Method Detail |
|---|
String getLocation()
String getFormat()
int getWidth()
int getHeight()
double getXResolution()
IMPORTANT: this number should reflect exactly the information
stored in the source located by getLocation().
double getYResolution()
IMPORTANT: this number should reflect exactly the information
stored in the source located by getLocation().
int getType()
TYPE_VECTOR,
TYPE_RASTER,
TYPE_RASTERIZABLEObject getClientData()
null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||