org.jdesktop.swingx
Class URLPainter

java.lang.Object
  extended by org.jdesktop.beans.AbstractBean
      extended by org.jdesktop.swingx.painter.AbstractPainter<T>
          extended by org.jdesktop.swingx.painter.CompoundPainter
              extended by org.jdesktop.swingx.URLPainter
All Implemented Interfaces:
Painter

public class URLPainter
extends CompoundPainter


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jdesktop.swingx.painter.AbstractPainter
AbstractPainter.Interpolation
 
Constructor Summary
URLPainter()
          Creates a new instance of URLPainter
URLPainter(Class<?> baseClass, String resource)
           
URLPainter(File file)
           
URLPainter(String url)
           
URLPainter(URL url)
           
 
Method Summary
 void doPaint(Graphics2D g, Object component, int width, int height)
          Subclasses must implement this method and perform custom painting operations here.
 URL getURL()
           
 void setURL(URL url)
           
 
Methods inherited from class org.jdesktop.swingx.painter.CompoundPainter
clearCache, clearLocalCache, configureGraphics, getPainters, getTransform, isCheckingDirtyChildPainters, isClipPreserved, isDirty, setCheckingDirtyChildPainters, setClipPreserved, setPainters, setTransform, shouldUseCache, validate
 
Methods inherited from class org.jdesktop.swingx.painter.AbstractPainter
getFilters, getInterpolation, isAntialiasing, isCacheable, isVisible, paint, setAntialiasing, setCacheable, setDirty, setFilters, setInterpolation, setVisible
 
Methods inherited from class org.jdesktop.beans.AbstractBean
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clone, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

setURL

public void setURL(URL url)

getURL

public URL getURL()

doPaint

public 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