Class URLPainter

All Implemented Interfaces:
Painter

public class URLPainter extends CompoundPainter
  • Field Details

    • url

      URL url
    • loaded

      private boolean loaded
  • Constructor Details

    • URLPainter

      public URLPainter()
      Creates a new instance of URLPainter
    • URLPainter

      public URLPainter(URL url)
    • URLPainter

      public URLPainter(File file)
    • URLPainter

      public URLPainter(String url)
    • URLPainter

      public URLPainter(Class<?> baseClass, String resource)
  • Method Details

    • setURL

      public void setURL(URL url)
    • getURL

      public URL getURL()
    • load

      private void load()
    • doPaint

      protected void doPaint(Graphics2D g, Object component, int width, int height)
      Description copied from class: CompoundPainter
      Subclasses must implement this method and perform custom painting operations here.
      Overrides:
      doPaint in class CompoundPainter
      Parameters:
      g - The Graphics2D object in which to paint
      component -
      width -
      height -