public class PainterUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PainterUtil.AbstractPainterDelegate |
static class |
PainterUtil.ImagePainterDelegate |
static class |
PainterUtil.PersistenceOwner |
static class |
PainterUtil.RenderingHintsDelegate |
| Modifier and Type | Method and 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) |
public static Painter loadPainter(File file) throws FileNotFoundException, MalformedURLException, IOException
public static Painter loadPainter(URL url) throws IOException
IOExceptionpublic static void savePainterToFile(Painter compoundPainter, File file) throws IOException
IOExceptionpublic static void savePainterToFile(Painter compoundPainter, File file, URL baseURL) throws IOException
IOExceptionpublic static void savePainterToImage(JComponent testPanel, CompoundPainter compoundPainter, File file) throws IOException
IOExceptionpublic static void setBGP(JComponent comp, Painter painter)
public static void setFGP(JComponent comp, Painter painter)
public static Painter getFGP(JComponent comp)
public static Painter getBGP(JComponent comp)
Copyright © 2014. All rights reserved.