Package pamViewFX.fxGlyphs
Class PamGlyphDude
java.lang.Object
pamViewFX.fxGlyphs.PamGlyphDude
Handles glyphs from various libraries.
- Author:
- Jamie Macaulay
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
colourToHex
(javafx.scene.paint.Color color) Convert a colour object to a hex codestatic javafx.scene.Node
createModuleIcon
(String iconStr) Create an Ikonli icon for modules with a default size and look.static javafx.scene.text.Text
createPamIcon
(String iconStr) Create an Ikonli icon which can be used as graphics for various controls.static javafx.scene.text.Text
createPamIcon
(String iconStr, int size) Create an Ikonli icon which can be used as graphics for various controls.static javafx.scene.text.Text
createPamIcon
(String iconStr, javafx.scene.paint.Color color, int size) Create an Ikonli icon which can be used as graphics for various controls.
-
Constructor Details
-
PamGlyphDude
public PamGlyphDude()
-
-
Method Details
-
createPamIcon
Create an Ikonli icon which can be used as graphics for various controls.- Parameters:
iconStr
- - the icon name to add- Returns:
- the icon in a form to add to a control.
-
createPamIcon
public static javafx.scene.text.Text createPamIcon(String iconStr, javafx.scene.paint.Color color, int size) Create an Ikonli icon which can be used as graphics for various controls.- Parameters:
iconStr
- - the icon name to addcolor
- - colour to set the icon tosize
- - the width of the icon in pixels- Returns:
- the icon in a form to add to a control.
-
createPamIcon
Create an Ikonli icon which can be used as graphics for various controls.- Parameters:
iconStr
- - the icon name to addsize
- - the width of the icon in pixels- Returns:
- the icon in a form to add to a control.
-
createModuleIcon
Create an Ikonli icon for modules with a default size and look.- Parameters:
iconStr
- - the icon name to add- Returns:
- the module glyph.
-
colourToHex
Convert a colour object to a hex code- Parameters:
color
-- Returns:
- the colour hex code.
-