|
DynamicPDF by ceTe Software | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cete.dynamicpdf.AreaDimensions
com.cete.dynamicpdf.PageDimensions
com.cete.dynamicpdf.AutoPageDimensions
public class AutoPageDimensions
Represents the dimensions of a page. This class can be used to specify the
dimensions and other formatting details of a page. It can then be passed into
a Page
constructor.
Constructor Summary | |
---|---|
AutoPageDimensions(Dimensions mediaBox,
Dimensions cropBox,
Dimensions trimBox,
Dimensions bleedBox,
Dimensions artBox)
This constructor is meant for DynamicPDF's internal usage and not supposed to be used by the client programs. |
|
AutoPageDimensions(float width,
float height)
Initializes a new instance of the AutoPageDimensions class. |
|
AutoPageDimensions(float width,
float height,
float margins)
Initializes a new instance of the AutoPageDimensions class. |
|
AutoPageDimensions(PageSize size)
Initializes a new instance of the AutoPageDimensions class. |
|
AutoPageDimensions(PageSize size,
float margins)
Initializes a new instance of the AutoPageDimensions class. |
|
AutoPageDimensions(PageSize size,
PageOrientation orientation)
Initializes a new instance of the AutoPageDimensions class. |
|
AutoPageDimensions(PageSize size,
PageOrientation orientation,
float margins)
Initializes a new instance of the AutoPageDimensions class. |
Method Summary | |
---|---|
void |
draw(DocumentWriter writer)
Draws the page dimensions to the given DocumentWriter object. |
InheritableDimensions |
getArtBox()
Gets the art box dimensions of the page in points (1/72 inches). |
InheritableDimensions |
getBleedBox()
Gets the bleed box dimensions of the page in points (1/72 inches). |
InheritableDimensions |
getCropBox()
Gets the crop box dimensions of the page in points (1/72 inches). |
float |
getHeight()
Gets the height of the page dimensions in points (1/72 inches). |
Dimensions |
getMediaBox()
Gets the media box dimensions of the page in points (1/72 inches). |
float |
getPdfX(float x)
Gets the translated X coordinate. |
float |
getPdfX(float x,
RelativeTo relativeTo,
boolean ignoreMargins)
Gets the translated X coordinate. |
float |
getPdfY(float y)
Gets the translated Y coordinate. |
float |
getPdfY(float y,
RelativeTo relativeTo,
boolean ignoreMargins)
Gets the translated Y coordinate. |
InheritableDimensions |
getTrimBox()
Gets the trim box dimensions of the page in points (1/72 inches). |
float |
getWidth()
Gets the width of the page dimensions in points (1/72 inches). |
void |
setHeight(float value)
Sets the height of the page dimensions in points (1/72 inches). |
void |
setWidth(float value)
Sets the width of the page dimensions in points (1/72 inches). |
Methods inherited from class com.cete.dynamicpdf.PageDimensions |
---|
setMargins, setMargins, setMargins |
Methods inherited from class com.cete.dynamicpdf.AreaDimensions |
---|
getBody, getBottomMargin, getEdge, getLeftMargin, getRightMargin, getTopMargin, setBottomMargin, setLeftMargin, setRightMargin, setTopMargin |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AutoPageDimensions(PageSize size)
AutoPageDimensions
class.
size
- Page size of the page dimensions in points (1/72 inches).public AutoPageDimensions(PageSize size, PageOrientation orientation)
AutoPageDimensions
class.
size
- Page size of the page dimensions in points (1/72 inches).orientation
- The PageOrientation of the page.public AutoPageDimensions(PageSize size, float margins)
AutoPageDimensions
class.
size
- Page size of the page dimensions in points (1/72 inches).margins
- Margins of the page dimensions in points (1/72 inches).public AutoPageDimensions(PageSize size, PageOrientation orientation, float margins)
AutoPageDimensions
class.
size
- Page size of the page dimensions in points (1/72 inches).orientation
- Orientation of the page dimensions in points (1/72 inches).margins
- Margins of the page dimensions in points (1/72 inches).public AutoPageDimensions(float width, float height)
AutoPageDimensions
class.
width
- Width of the page dimensions in points (1/72 inches).height
- Height of the page dimensions in points (1/72 inches).public AutoPageDimensions(float width, float height, float margins)
AutoPageDimensions
class.
width
- Width of the page dimensions in points (1/72 inches).height
- Height of the page dimensions in points (1/72 inches).margins
- Margins of the page dimensions in points (1/72 inches).public AutoPageDimensions(Dimensions mediaBox, Dimensions cropBox, Dimensions trimBox, Dimensions bleedBox, Dimensions artBox)
This constructor is meant for DynamicPDF's internal usage and not supposed to be used by the client programs.
Method Detail |
---|
public Dimensions getMediaBox()
getMediaBox
in class PageDimensions
public InheritableDimensions getCropBox()
getCropBox
in class PageDimensions
public InheritableDimensions getBleedBox()
getBleedBox
in class PageDimensions
public InheritableDimensions getTrimBox()
getTrimBox
in class PageDimensions
public InheritableDimensions getArtBox()
getArtBox
in class PageDimensions
public float getWidth()
getWidth
in class AreaDimensions
public void setWidth(float value)
setWidth
in class AreaDimensions
value
- width of the page dimensions in points (1/72 inches).public float getHeight()
getHeight
in class AreaDimensions
public void setHeight(float value)
setHeight
in class AreaDimensions
value
- height of the page dimensions in points (1/72 inches).public void draw(DocumentWriter writer)
DocumentWriter
object.
draw
in class PageDimensions
writer
- DocumentWriter
to receive the page dimensions output.DocumentWriter
public float getPdfX(float x)
getPdfX
in class AreaDimensions
x
- X coordinate to translate.
public float getPdfX(float x, RelativeTo relativeTo, boolean ignoreMargins)
getPdfX
in class AreaDimensions
x
- X coordinate to translate.relativeTo
- Placement of the page element on the page.ignoreMargins
- Setting false will consider the margin while placing the page element based on the RelativeTo property.
public float getPdfY(float y)
getPdfY
in class PageDimensions
y
- Y coordinate to translate.
public float getPdfY(float y, RelativeTo relativeTo, boolean ignoreMargins)
getPdfY
in class PageDimensions
y
- Y coordinate to translate.relativeTo
- Placement of the page element on the page.ignoreMargins
- Setting false will consider the margin while placing the page element based on the RelativeTo property.
|
DynamicPDF by ceTe Software | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |