Class PamGlyphDude

java.lang.Object
pamViewFX.fxGlyphs.PamGlyphDude

public class PamGlyphDude extends Object
Handles glyphs from various libraries.
Author:
Jamie Macaulay
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    colourToHex(javafx.scene.paint.Color color)
    Convert a colour object to a hex code
    static javafx.scene.Node
    Create an Ikonli icon for modules with a default size and look.
    static javafx.scene.text.Text
    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.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PamGlyphDude

      public PamGlyphDude()
  • Method Details

    • createPamIcon

      public static javafx.scene.text.Text createPamIcon(String iconStr)
      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 add
      color - - colour to set the icon to
      size - - the width of the icon in pixels
      Returns:
      the icon in a form to add to a control.
    • createPamIcon

      public static javafx.scene.text.Text createPamIcon(String iconStr, int size)
      Create an Ikonli icon which can be used as graphics for various controls.
      Parameters:
      iconStr - - the icon name to add
      size - - the width of the icon in pixels
      Returns:
      the icon in a form to add to a control.
    • createModuleIcon

      public static javafx.scene.Node createModuleIcon(String iconStr)
      Create an Ikonli icon for modules with a default size and look.
      Parameters:
      iconStr - - the icon name to add
      Returns:
      the module glyph.
    • colourToHex

      public static String colourToHex(javafx.scene.paint.Color color)
      Convert a colour object to a hex code
      Parameters:
      color -
      Returns:
      the colour hex code.