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