Basics
Guides
API Reference
Basics
Guides
API Reference
[16:7] extends: StackPane
Wraps FXGL's KeyView (com.almasb.fxgl.input.view.KeyView), a StackPane that renders a pretty key glyph (e.g. "[W]", arrow shapes, shift / enter symbols) for tutorial overlays and rebind UIs.
KeyView (string KeyName, object ColorObj = null, double Size = 24.0)
Creates a new KeyView for the given KeyCode name, color and size.
KeyName is the KeyCode enum name.ColorObj is a Color wrapper for the foreground.Size is the base glyph size in pixels.getKeyColor ()
Returns the key glyph fill color.
setKeyColor (object ColorObj)
Sets the key glyph fill color.
getBackgroundColor ()
Returns the key glyph background fill.
setBackgroundColor (object ColorObj)
Sets the key glyph background fill.
keyColorProperty ()
Returns the underlying ObjectProperty
for the key color so callers can bind it.
An AussomJavaObject around an ObjectProperty.backgroundColorProperty ()
Returns the underlying ObjectProperty
for the background color.
An AussomJavaObject around an ObjectProperty.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.