Package mdlaf.utils

Class MaterialImageFactory


  • public class MaterialImageFactory
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String BLANK  
      static java.lang.String DOWN_ARROW
      Deprecated.
      Use iconfont, look the documentation here https://github.com/vincenzopalazzo/material-ui-swing/blob/master/docs/CHANGELOG.md#used-iconfontswing-library-for-add-other-icons
      static java.lang.String ERROR  
      static java.lang.String INFORMATION  
      static java.lang.String LEFT_ARROW
      Deprecated.
      Use iconfont, look the documentation here https://github.com/vincenzopalazzo/material-ui-swing/blob/master/docs/CHANGELOG.md#used-iconfontswing-library-for-add-other-icons
      static java.lang.String QUESTION  
      static java.lang.String RIGHT_ARROW
      Deprecated.
      Use iconfont, look the documentation here https://github.com/vincenzopalazzo/material-ui-swing/blob/master/docs/CHANGELOG.md#used-iconfontswing-library-for-add-other-icons
      static java.lang.String UP_ARROW
      Deprecated.
      Use iconfont, look the documentation here https://github.com/vincenzopalazzo/material-ui-swing/blob/master/docs/CHANGELOG.md#used-iconfontswing-library-for-add-other-icons
      static java.lang.String WARNING  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.swing.plaf.IconUIResource getImage​(java.lang.String key)  
      javax.swing.plaf.IconUIResource getImage​(IMaterialIconCode iconCode)  
      javax.swing.plaf.IconUIResource getImage​(IMaterialIconCode iconCode, int dimension)  
      javax.swing.plaf.IconUIResource getImage​(IMaterialIconCode iconCode, int dimension, java.awt.Color color)
      This method utilized this library for make the icons https://jiconfont.github.io/swing by default the material-ui-swing utilized the Google font https://jiconfont.github.io/swing but you can set other type of font with method param iconCode param dimension: Is the dimension of icons, by default this library used dimension = 20 param color: Is the color of icons, by default this library used color = MaterialColors.BLACK;
      javax.swing.plaf.IconUIResource getImage​(IMaterialIconCode iconCode, java.awt.Color color)  
      static MaterialImageFactory getInstance()  
      static void registerIcons​(jiconfont.IconCode iconCode)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • RIGHT_ARROW

        @Deprecated
        public static final java.lang.String RIGHT_ARROW
        Deprecated.
        Use iconfont, look the documentation here https://github.com/vincenzopalazzo/material-ui-swing/blob/master/docs/CHANGELOG.md#used-iconfontswing-library-for-add-other-icons
        See Also:
        Constant Field Values
      • LEFT_ARROW

        @Deprecated
        public static final java.lang.String LEFT_ARROW
        Deprecated.
        Use iconfont, look the documentation here https://github.com/vincenzopalazzo/material-ui-swing/blob/master/docs/CHANGELOG.md#used-iconfontswing-library-for-add-other-icons
        See Also:
        Constant Field Values
      • DOWN_ARROW

        @Deprecated
        public static final java.lang.String DOWN_ARROW
        Deprecated.
        Use iconfont, look the documentation here https://github.com/vincenzopalazzo/material-ui-swing/blob/master/docs/CHANGELOG.md#used-iconfontswing-library-for-add-other-icons
        See Also:
        Constant Field Values
      • UP_ARROW

        @Deprecated
        public static final java.lang.String UP_ARROW
        Deprecated.
        Use iconfont, look the documentation here https://github.com/vincenzopalazzo/material-ui-swing/blob/master/docs/CHANGELOG.md#used-iconfontswing-library-for-add-other-icons
        See Also:
        Constant Field Values
    • Method Detail

      • registerIcons

        public static void registerIcons​(jiconfont.IconCode iconCode)
      • getImage

        public javax.swing.plaf.IconUIResource getImage​(java.lang.String key)
      • getImage

        public javax.swing.plaf.IconUIResource getImage​(IMaterialIconCode iconCode,
                                                        int dimension,
                                                        java.awt.Color color)
        This method utilized this library for make the icons https://jiconfont.github.io/swing by default the material-ui-swing utilized the Google font https://jiconfont.github.io/swing but you can set other type of font with method param iconCode param dimension: Is the dimension of icons, by default this library used dimension = 20 param color: Is the color of icons, by default this library used color = MaterialColors.BLACK;
      • getImage

        public javax.swing.plaf.IconUIResource getImage​(IMaterialIconCode iconCode,
                                                        int dimension)
      • getImage

        public javax.swing.plaf.IconUIResource getImage​(IMaterialIconCode iconCode)
      • getImage

        public javax.swing.plaf.IconUIResource getImage​(IMaterialIconCode iconCode,
                                                        java.awt.Color color)