Package mdlaf.utils
Class MaterialImageFactory
- java.lang.Object
-
- mdlaf.utils.MaterialImageFactory
-
public class MaterialImageFactory extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBLANKstatic java.lang.StringDOWN_ARROWDeprecated.Use iconfont, look the documentation here https://github.com/vincenzopalazzo/material-ui-swing/blob/master/docs/CHANGELOG.md#used-iconfontswing-library-for-add-other-iconsstatic java.lang.StringERRORstatic java.lang.StringINFORMATIONstatic java.lang.StringLEFT_ARROWDeprecated.Use iconfont, look the documentation here https://github.com/vincenzopalazzo/material-ui-swing/blob/master/docs/CHANGELOG.md#used-iconfontswing-library-for-add-other-iconsstatic java.lang.StringQUESTIONstatic java.lang.StringRIGHT_ARROWDeprecated.Use iconfont, look the documentation here https://github.com/vincenzopalazzo/material-ui-swing/blob/master/docs/CHANGELOG.md#used-iconfontswing-library-for-add-other-iconsstatic java.lang.StringUP_ARROWDeprecated.Use iconfont, look the documentation here https://github.com/vincenzopalazzo/material-ui-swing/blob/master/docs/CHANGELOG.md#used-iconfontswing-library-for-add-other-iconsstatic java.lang.StringWARNING
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.plaf.IconUIResourcegetImage(java.lang.String key)javax.swing.plaf.IconUIResourcegetImage(IMaterialIconCode iconCode)javax.swing.plaf.IconUIResourcegetImage(IMaterialIconCode iconCode, int dimension)javax.swing.plaf.IconUIResourcegetImage(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.IconUIResourcegetImage(IMaterialIconCode iconCode, java.awt.Color color)static MaterialImageFactorygetInstance()static voidregisterIcons(jiconfont.IconCode iconCode)
-
-
-
Field Detail
-
BLANK
public static final java.lang.String BLANK
- See Also:
- Constant Field Values
-
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
-
ERROR
public static final java.lang.String ERROR
- See Also:
- Constant Field Values
-
WARNING
public static final java.lang.String WARNING
- See Also:
- Constant Field Values
-
QUESTION
public static final java.lang.String QUESTION
- See Also:
- Constant Field Values
-
INFORMATION
public static final java.lang.String INFORMATION
- See Also:
- Constant Field Values
-
-
Method Detail
-
registerIcons
public static void registerIcons(jiconfont.IconCode iconCode)
-
getInstance
public static MaterialImageFactory getInstance()
-
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)
-
-