Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: Glyph

[79:7] extends: Label, Region

Glyph wraps the ControlsFX glyph node used to render a single Font Awesome icon as styled text.

CSS Classes

Scope CSS Classes
ControlsFX glyph node glyph, plus Font Awesome font-specific glyph classes applied by ControlsFX.
Parent groups Labeled, Control, Region, and Node styling rules still apply because Glyph extends Label.

CSS Guide

Group What To Style
Labeled Use text-focused properties such as -fx-text-fill, -fx-font, -fx-graphic-text-gap, -fx-content-display, and alignment settings.
Control Override the skin with -fx-skin and focus behavior with -fx-focus-traversable.
Region Apply background, border, padding, shape, and preferred size properties.
Node Apply opacity, transforms, cursor, effects, and visibility.

Methods

  • Glyph (Obj)

    Wraps an existing ControlsFX glyph Java object.

    • @p Obj is the underlying ControlsFX glyph object.

class: FontAwesome

[13:14] static extends: object

FontAwesome exposes the ControlsFX glyph registry under the fx.controlsfx module path. It is used to enumerate the bundled Font Awesome glyph names and create displayable glyph nodes for buttons, labels, status bars, and other JavaFX graphics.

Members

  • fa

Methods

  • get ()

    Returns the cached ControlsFX GlyphFont instance, loading it on first use.

    • @r A Java glyph font object for the Font Awesome registry entry.
  • names ()

    Returns the available Font Awesome glyph names.

    • @r A list of strings such as SAVE and GEAR.
  • create (string Name)

    Creates a ControlsFX glyph node from the provided enum name.

    • @p Name is the FontAwesome.Glyph enum member name.
    • @r A Glyph node wrapper.