Package org.jpedal.external
Interface JPedalCustomDrawObject
public interface JPedalCustomDrawObject
custom object to draw onto screen
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
paint
(Graphics2D g2) code to execute when rendering to screenvoid
print
(Graphics2D g2, int x) code to execute when printing to jpsvoid
setMedX
(int x) sets the x media offset of the pagevoid
setMedY
(int y) sets the y media offset of the pagevoid
setVisible
(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
-