Class JGraphPrintingScrollPane.Viewport

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Enclosing class:
JGraphPrintingScrollPane

public class JGraphPrintingScrollPane.Viewport extends JViewport
Viewport for diagram panes that is in charge of painting the background image or page.
See Also:
  • Constructor Details

    • Viewport

      public Viewport()
  • Method Details

    • paint

      public void paint(Graphics g)
      Paints the background.
      Overrides:
      paint in class JViewport
      Parameters:
      g - The graphics object to paint the background on.
    • paintBackgroundImage

      protected void paintBackgroundImage(Graphics2D g2)
      Hook for subclassers to paint the background image.
      Parameters:
      g2 - The graphics object to paint the image on.
    • paintBackgroundPages

      protected void paintBackgroundPages(Graphics2D g2)
      Hook for subclassers to paint the background page(s).
      Parameters:
      g2 - The graphics object to paint the background page(s) on.