Class PainterUtil


  • public class PainterUtil
    extends java.lang.Object
    • Constructor Detail

      • PainterUtil

        private PainterUtil()
        Creates a new instance of PainterUtil
    • 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

        private static Painter loadPainter​(java.net.URL in,
                                           java.net.URL baseURL)
                                    throws java.io.FileNotFoundException,
                                           java.io.IOException
        Throws:
        java.io.FileNotFoundException
        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
      • 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)