Interface JPedalCustomDrawObject


public interface JPedalCustomDrawObject
custom object to draw onto screen
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Integer
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    code to execute when rendering to screen
    void
    print(Graphics2D g2, int x)
    code to execute when printing to jps
    void
    setMedX(int x)
    sets the x media offset of the page
    void
    setMedY(int y)
    sets the y media offset of the page
    void
    setVisible(boolean isVisible)
    allow user to switch on and off
  • Field Details

    • ALLPAGES

      static final Integer ALLPAGES
  • Method Details

    • paint

      void paint(Graphics2D g2)
      code to execute when rendering to screen
      Parameters:
      g2 - the graphics2d object containing the graphics to be painted
    • print

      void print(Graphics2D g2, int x)
      code to execute when printing to jps
      Parameters:
      g2 - the graphics2d object containing the graphics to be printed
      x - 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