|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.xmlmind.fo.graphic.GraphicImpl
public class GraphicImpl
Basic implementation of Graphic.
| Field Summary | |
|---|---|
Object |
clientData
Value returned by getClientData(). |
String |
format
Value returned by getFormat(). |
int |
height
Value returned by getHeight(). |
String |
location
Value returned by getLocation(). |
int |
type
Value returned by getType(). |
int |
width
Value returned by getWidth(). |
double |
xResolution
Value returned by getXResolution(). |
double |
yResolution
Value returned by getYResolution(). |
| Fields inherited from interface com.xmlmind.fo.graphic.Graphic |
|---|
TYPE_RASTER, TYPE_RASTERIZABLE, TYPE_VECTOR |
| Constructor Summary | |
|---|---|
GraphicImpl(String location,
String format,
int width,
int height,
double xResolution,
double yResolution,
int type,
Object clientData)
Constructs a graphic having specified characteristics. |
|
GraphicImpl(String location,
String format,
int width,
int height,
double xResolution,
double yResolution,
Object clientData)
Equivalent to this(location, format, width, height,
xResolution, yResolution, TYPE_RASTER, clientData). |
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final String location
getLocation().
public final String format
getFormat().
public final int width
getWidth().
public final int height
getHeight().
public final double xResolution
getXResolution().
public final double yResolution
getYResolution().
public final int type
getType().
public final Object clientData
getClientData().
| Constructor Detail |
|---|
public GraphicImpl(String location,
String format,
int width,
int height,
double xResolution,
double yResolution,
Object clientData)
this(location, format, width, height,
xResolution, yResolution, TYPE_RASTER, clientData).
public GraphicImpl(String location,
String format,
int width,
int height,
double xResolution,
double yResolution,
int type,
Object clientData)
| Method Detail |
|---|
public String getLocation()
Graphic
getLocation in interface Graphicpublic String getFormat()
Graphic
getFormat in interface Graphicpublic int getWidth()
Graphic
getWidth in interface Graphicpublic int getHeight()
Graphic
getHeight in interface Graphicpublic double getXResolution()
GraphicIMPORTANT: this number should reflect exactly the information
stored in the source located by Graphic.getLocation().
getXResolution in interface Graphicpublic double getYResolution()
GraphicIMPORTANT: this number should reflect exactly the information
stored in the source located by Graphic.getLocation().
getYResolution in interface Graphicpublic int getType()
Graphic
getType in interface GraphicGraphic.TYPE_VECTOR,
Graphic.TYPE_RASTER,
Graphic.TYPE_RASTERIZABLEpublic Object getClientData()
Graphicnull.
getClientData in interface Graphic
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||