Package org.jdesktop.beans.editors
Class PainterUtil
- java.lang.Object
-
- org.jdesktop.beans.editors.PainterUtil
-
public class PainterUtil extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPainterUtil.AbstractPainterDelegatestatic classPainterUtil.ImagePainterDelegatestatic classPainterUtil.PersistenceOwnerstatic classPainterUtil.RenderingHintsDelegate(package private) static classPainterUtil.TypeSafeEnumPersistenceDelegate
-
Constructor Summary
Constructors Modifier Constructor Description privatePainterUtil()Creates a new instance of PainterUtil
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PaintergetBGP(javax.swing.JComponent comp)static PaintergetFGP(javax.swing.JComponent comp)static PainterloadPainter(java.io.File file)static PainterloadPainter(java.net.URL url)private static PainterloadPainter(java.net.URL in, java.net.URL baseURL)static voidsavePainterToFile(Painter compoundPainter, java.io.File file)static voidsavePainterToFile(Painter compoundPainter, java.io.File file, java.net.URL baseURL)static voidsavePainterToImage(javax.swing.JComponent testPanel, CompoundPainter compoundPainter, java.io.File file)static voidsetBGP(javax.swing.JComponent comp, Painter painter)static voidsetFGP(javax.swing.JComponent comp, Painter painter)private static voidsetTransient(java.lang.Class clazz, java.lang.String property)
-
-
-
Method Detail
-
loadPainter
public static Painter loadPainter(java.io.File file) throws java.io.FileNotFoundException, java.net.MalformedURLException, java.io.IOException
- Throws:
java.io.FileNotFoundExceptionjava.net.MalformedURLExceptionjava.io.IOException
-
loadPainter
private static Painter loadPainter(java.net.URL in, java.net.URL baseURL) throws java.io.FileNotFoundException, java.io.IOException
- Throws:
java.io.FileNotFoundExceptionjava.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
-
setTransient
private static void setTransient(java.lang.Class clazz, java.lang.String property)
-
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)
-
-