Interface IPage
public interface IPage
Interface to define a page
- Since:
- 3.3
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
disposer of the pagevoid
drawBackgroundColor
(Color color, int x, int y, int width, int height) Draws the background color at the contentByteUnder of the pdfvoid
drawBackgroundImage
(int x, int y, int width, int height, int imageWidth, int imageHeight, int repeat, String imageUrl, byte[] imageData, int absPosX, int absPosY) Draw the background imagevoid
drawImage
(String imageId, byte[] imageData, String extension, int imageX, int imageY, int height, int width, String helpText, Map params) Draw the imagevoid
drawImage
(String uri, String extension, int imageX, int imageY, int height, int width, String helpText, Map params) Draw the imagevoid
Draws a line from the start position to the end position with the given line width, color, and style.void
drawText
(String text, int textX, int textY, int width, int height, org.eclipse.birt.report.engine.nLayout.area.style.TextStyle textStyle) Draws text at specified position with specified styles.void
endClip()
restores last graphic state.void
showHelpText
(String text, int x, int y, int width, int height) Show the help textvoid
startClip
(int startX, int startY, int width, int height) Saves last graphic state, and clips a rectangle area.
-
Method Details
-
dispose
void dispose()disposer of the page -
startClip
void startClip(int startX, int startY, int width, int height) Saves last graphic state, and clips a rectangle area.- Parameters:
startX
- x coordinate of left upper corner.startY
- y coordinate of left upper corner.width
- width of the area.height
- height of the area.
-
endClip
void endClip()restores last graphic state. -
drawText
void drawText(String text, int textX, int textY, int width, int height, org.eclipse.birt.report.engine.nLayout.area.style.TextStyle textStyle) Draws text at specified position with specified styles.- Parameters:
text
-textX
-textY
-width
-height
-textStyle
-
-
drawImage
void drawImage(String imageId, byte[] imageData, String extension, int imageX, int imageY, int height, int width, String helpText, Map params) throws Exception Draw the image- Parameters:
imageId
- image idimageData
- image dataextension
- image typeimageX
- image x positionimageY
- image y positionheight
- image heightwidth
- image widthhelpText
- help textparams
- map of parameters- Throws:
Exception
- handling exception
-
drawImage
void drawImage(String uri, String extension, int imageX, int imageY, int height, int width, String helpText, Map params) throws Exception Draw the image- Parameters:
uri
- image uriextension
- image typeimageX
- image x positionimageY
- image y positionheight
- image heightwidth
- image widthhelpText
- help textparams
- map of parameters- Throws:
Exception
- handling exception
-
drawLine
Draws a line from the start position to the end position with the given line width, color, and style.- Parameters:
startX
- the start X coordinate of the linestartY
- the start Y coordinate of the lineendX
- the end X coordinate of the lineendY
- the end Y coordinate of the linewidth
- the lineWidthcolor
- the color of the linelineStyle
- the given line style
-
drawBackgroundColor
Draws the background color at the contentByteUnder of the pdf- Parameters:
color
- the color to be drawnx
- the start X coordinatey
- the start Y coordinatewidth
- the width of the background dimensionheight
- the height of the background dimension
-
drawBackgroundImage
void drawBackgroundImage(int x, int y, int width, int height, int imageWidth, int imageHeight, int repeat, String imageUrl, byte[] imageData, int absPosX, int absPosY) throws Exception Draw the background image- Parameters:
x
- image x positiony
- image y positionwidth
- withheight
- heightimageWidth
- image widthimageHeight
- image heightrepeat
- repeat the image on backgroundimageUrl
- image URLimageData
- image dataabsPosX
- absolute x positionabsPosY
- absolute y position- Throws:
Exception
- handling exception
-
showHelpText
Show the help text- Parameters:
text
- help textx
- x positiony
- y positionwidth
- widthheight
- height
-