Class PainterUtil
java.lang.Object
org.jdesktop.beans.editors.PainterUtil
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classstatic classstatic final class(package private) static class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PaintergetBGP(JComponent comp) static PaintergetFGP(JComponent comp) static PainterloadPainter(File file) static PainterloadPainter(URL url) private static PainterloadPainter(URL in, URL baseURL) static voidsavePainterToFile(Painter compoundPainter, File file) static voidsavePainterToFile(Painter compoundPainter, File file, URL baseURL) static voidsavePainterToImage(JComponent testPanel, CompoundPainter compoundPainter, File file) static voidsetBGP(JComponent comp, Painter painter) static voidsetFGP(JComponent comp, Painter painter) private static voidsetTransient(Class clazz, String property)
-
Constructor Details
-
PainterUtil
private PainterUtil()Creates a new instance of PainterUtil
-
-
Method Details
-
loadPainter
public static Painter loadPainter(File file) throws FileNotFoundException, MalformedURLException, IOException -
loadPainter
- Throws:
FileNotFoundExceptionIOException
-
loadPainter
- Throws:
IOException
-
savePainterToFile
- Throws:
IOException
-
savePainterToFile
public static void savePainterToFile(Painter compoundPainter, File file, URL baseURL) throws IOException - Throws:
IOException
-
setTransient
-
savePainterToImage
public static void savePainterToImage(JComponent testPanel, CompoundPainter compoundPainter, File file) throws IOException - Throws:
IOException
-
setBGP
-
setFGP
-
getFGP
-
getBGP
-