Package org.jdesktop.swingx
Class URLPainter
- java.lang.Object
-
- org.jdesktop.beans.AbstractBean
-
- org.jdesktop.swingx.painter.AbstractPainter<T>
-
- org.jdesktop.swingx.painter.CompoundPainter
-
- 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
Constructors Constructor Description URLPainter()
Creates a new instance of URLPainterURLPainter(java.io.File file)
URLPainter(java.lang.Class<?> baseClass, java.lang.String resource)
URLPainter(java.lang.String url)
URLPainter(java.net.URL url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doPaint(java.awt.Graphics2D g, java.lang.Object component, int width, int height)
Subclasses must implement this method and perform custom painting operations here.java.net.URL
getURL()
void
setURL(java.net.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
-
-
-
-
Constructor Detail
-
URLPainter
public URLPainter()
Creates a new instance of URLPainter
-
URLPainter
public URLPainter(java.net.URL url)
-
URLPainter
public URLPainter(java.io.File file)
-
URLPainter
public URLPainter(java.lang.String url)
-
URLPainter
public URLPainter(java.lang.Class<?> baseClass, java.lang.String resource)
-
-
Method Detail
-
setURL
public void setURL(java.net.URL url)
-
getURL
public java.net.URL getURL()
-
doPaint
public void doPaint(java.awt.Graphics2D g, java.lang.Object component, int width, int height)
Description copied from class:AbstractPainter
Subclasses must implement this method and perform custom painting operations here.- Overrides:
doPaint
in classCompoundPainter
- Parameters:
g
- The Graphics2D object in which to paint
-
-