Package org.jpedal.external
Interface JPedalCustomDrawObject
public interface JPedalCustomDrawObject
custom object to draw onto screen
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidpaint(Graphics2D g2) code to execute when rendering to screenvoidprint(Graphics2D g2, int x) code to execute when printing to jpsvoidsetMedX(int x) sets the x media offset of the pagevoidsetMedY(int y) sets the y media offset of the pagevoidsetVisible(boolean isVisible) allow user to switch on and off
-
Field Details
-
ALLPAGES
-
-
Method Details
-
paint
code to execute when rendering to screen- Parameters:
g2- the graphics2d object containing the graphics to be painted
-
print
code to execute when printing to jps- Parameters:
g2- the graphics2d object containing the graphics to be printedx- the page number to be printed
-
setVisible
void setVisible(boolean isVisible) allow user to switch on and off- Parameters:
isVisible- true to switch on visibility
-
setMedX
void setMedX(int x) sets the x media offset of the page- Parameters:
x- the amount to offset media horizontally
-
setMedY
void setMedY(int y) sets the y media offset of the page- Parameters:
y- the amount to offset media vertically
-