org.jdesktop.swingx.editors
Class PainterUtil
java.lang.Object
org.jdesktop.swingx.editors.PainterUtil
public class PainterUtil
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
loadPainter
public static Painter loadPainter(java.io.File file)
throws java.io.FileNotFoundException,
java.net.MalformedURLException,
java.io.IOException
- Throws:
java.io.FileNotFoundException
java.net.MalformedURLException
java.io.IOException
loadPainter
public static Painter loadPainter(java.net.URL url)
throws java.io.IOException
- Throws:
java.io.IOException
savePainterToFile
public static void savePainterToFile(Painter compoundPainter,
java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
savePainterToFile
public static void savePainterToFile(Painter compoundPainter,
java.io.File file,
java.net.URL baseURL)
throws java.io.IOException
- Throws:
java.io.IOException
savePainterToImage
public static void savePainterToImage(javax.swing.JComponent testPanel,
CompoundPainter compoundPainter,
java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
setBGP
public static void setBGP(javax.swing.JComponent comp,
Painter painter)
setFGP
public static void setFGP(javax.swing.JComponent comp,
Painter painter)
getFGP
public static Painter getFGP(javax.swing.JComponent comp)
getBGP
public static Painter getBGP(javax.swing.JComponent comp)