Skip to content

Package io.github.qishr.cascara.ui.control

Class SvgBadgeIcon

java.lang.Object
        javafx.scene.Node
                javafx.scene.Parent
                        javafx.scene.layout.Region
                                javafx.scene.layout.Pane
                                        javafx.scene.layout.StackPane
                                                io.github.qishr.cascara.ui.control.SvgBadgeIcon


public class SvgBadgeIcon
extends StackPane

Constructor Summary

Constructor Description
SvgBadgeIcon(SvgIcon icon)

Method Summary

Modifier and Type Method Description
public void setBadge(Node badgeNode, Pos alignment) Attaches a badge to the icon.
public SvgIcon getBaseIcon()

Method Details

setBadge

public void setBadge(Node badgeNode, Pos alignment)

Attaches a badge to the icon.

Parameters:

badgeNode - The node to overlay (Circle, Label, another SvgIcon, etc.)

alignment - Where to place the badge (e.g., Pos.BOTTOM_RIGHT)


getBaseIcon

public SvgIcon getBaseIcon()