Package org.jdesktop.swingx.editors
Class PainterUtil
- java.lang.Object
-
- org.jdesktop.swingx.editors.PainterUtil
-
public class PainterUtil extends 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(JComponent comp)
static Painter
getFGP(JComponent comp)
static Painter
loadPainter(File file)
static Painter
loadPainter(URL url)
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)
-
-
-
Method Detail
-
loadPainter
public static Painter loadPainter(File file) throws FileNotFoundException, MalformedURLException, IOException
-
loadPainter
public static Painter loadPainter(URL url) throws IOException
- Throws:
IOException
-
savePainterToFile
public static void savePainterToFile(Painter compoundPainter, File file) throws IOException
- Throws:
IOException
-
savePainterToFile
public static void savePainterToFile(Painter compoundPainter, File file, URL baseURL) throws IOException
- Throws:
IOException
-
savePainterToImage
public static void savePainterToImage(JComponent testPanel, CompoundPainter compoundPainter, File file) throws IOException
- Throws:
IOException
-
setBGP
public static void setBGP(JComponent comp, Painter painter)
-
setFGP
public static void setFGP(JComponent comp, Painter painter)
-
getFGP
public static Painter getFGP(JComponent comp)
-
getBGP
public static Painter getBGP(JComponent comp)
-
-