Class LeafIcon
java.lang.Object
uno.anahata.asi.swing.icons.AbstractAnahataIcon
uno.anahata.asi.swing.icons.LeafIcon
- All Implemented Interfaces:
Icon
A programmatically drawn icon representing a leaf in various stages of its lifecycle.
This icon is used to visualize the "metabolism" of context parts, specifically indicating whether a part is active, withered (effectively pruned), or dead (permanently deleted).
- Author:
- anahata
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumStage of the leaf's lifecycle, mapped to context pruning states. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LeafIcon.LeafStateThe active metabolic lifecycle state of this leaf.Fields inherited from class AbstractAnahataIcon
size -
Constructor Summary
ConstructorsConstructorDescriptionLeafIcon(int size, LeafIcon.LeafState state) Constructs a new LeafIcon with the specified size and state. -
Method Summary
Methods inherited from class AbstractAnahataIcon
getBlueColor, getIconHeight, getIconWidth, getRedColor
-
Field Details
-
state
The active metabolic lifecycle state of this leaf.
-
-
Constructor Details
-
LeafIcon
Constructs a new LeafIcon with the specified size and state.- Parameters:
size- The size in pixels.state- The current lifecycle stage.
-
-
Method Details
-
paintIcon
-

