Package org.jdesktop.swingx.editors
Class PainterUtil
- java.lang.Object
-
- org.jdesktop.swingx.editors.PainterUtil
-
public class PainterUtil extends java.lang.Object
- Author:
- joshy
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PainterUtil.AbstractPainterDelegate
static class
PainterUtil.ImagePainterDelegate
static class
PainterUtil.PersistenceOwner
static class
PainterUtil.RenderingHintsDelegate
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Painter
getBGP(javax.swing.JComponent comp)
static Painter
getFGP(javax.swing.JComponent comp)
static Painter
loadPainter(java.io.File file)
static Painter
loadPainter(java.net.URL url)
static void
savePainterToFile(Painter compoundPainter, java.io.File file)
static void
savePainterToFile(Painter compoundPainter, java.io.File file, java.net.URL baseURL)
static void
savePainterToImage(javax.swing.JComponent testPanel, CompoundPainter compoundPainter, java.io.File file)
static void
setBGP(javax.swing.JComponent comp, Painter painter)
static void
setFGP(javax.swing.JComponent comp, Painter painter)
-
-
-
Method Detail
-
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)
-
-