Package org.apache.fop.afp
Class AFPObjectAreaInfo
java.lang.Object
org.apache.fop.afp.AFPObjectAreaInfo
A common class used to convey locations,
dimensions and resolutions of data objects.
-
Constructor Summary
ConstructorDescriptionAFPObjectAreaInfo
(int x, int y, int width, int height, int resolution, int rotation) Constructor -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the height of this data objectint
Returns the height resolution of this data objectint
Returns the rotation of this data objectint
getWidth()
Returns the width of this data objectint
Returns the width resolution of this data objectint
getX()
Returns the x coordinate of this data objectint
getY()
Returns the y coordinate of this data objectvoid
setHeightRes
(int resolution) Sets the height resolution.void
setResolution
(int resolution) Sets both the width and the height resolutions.void
setWidthRes
(int resolution) Sets the width resolution.toString()
-
Constructor Details
-
AFPObjectAreaInfo
public AFPObjectAreaInfo(int x, int y, int width, int height, int resolution, int rotation) Constructor- Parameters:
x
- the x coordinatey
- the y coordinatewidth
- the widthheight
- the heightresolution
- the resolution (sets both width and height resolutions)rotation
- the rotation angle
-
-
Method Details
-
setResolution
public void setResolution(int resolution) Sets both the width and the height resolutions.- Parameters:
resolution
- the resolution
-
setWidthRes
public void setWidthRes(int resolution) Sets the width resolution.- Parameters:
resolution
- the resolution
-
setHeightRes
public void setHeightRes(int resolution) Sets the height resolution.- Parameters:
resolution
- the resolution
-
getX
public int getX()Returns the x coordinate of this data object- Returns:
- the x coordinate of this data object
-
getY
public int getY()Returns the y coordinate of this data object- Returns:
- the y coordinate of this data object
-
getWidth
public int getWidth()Returns the width of this data object- Returns:
- the width of this data object
-
getHeight
public int getHeight()Returns the height of this data object- Returns:
- the height of this data object
-
getWidthRes
public int getWidthRes()Returns the width resolution of this data object- Returns:
- the resolution of this data object
-
getHeightRes
public int getHeightRes()Returns the height resolution of this data object- Returns:
- the resolution of this data object
-
getRotation
public int getRotation()Returns the rotation of this data object- Returns:
- the rotation of this data object
-
toString
-