Package org.jdesktop.beans.editors
Class PainterUtil
java.lang.Object
org.jdesktop.beans.editors.PainterUtil
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
static final class
static class
static final class
(package private) static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Painter
getBGP
(JComponent comp) static Painter
getFGP
(JComponent comp) static Painter
loadPainter
(File file) static Painter
loadPainter
(URL url) private static Painter
loadPainter
(URL in, URL baseURL) static void
savePainterToFile
(Painter compoundPainter, File file) static void
savePainterToFile
(Painter compoundPainter, File file, URL baseURL) static void
savePainterToImage
(JComponent testPanel, CompoundPainter compoundPainter, File file) static void
setBGP
(JComponent comp, Painter painter) static void
setFGP
(JComponent comp, Painter painter) private static void
setTransient
(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:
FileNotFoundException
IOException
-
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
-