Class AvatarViewSkin

java.lang.Object
javafx.scene.control.SkinBase<AvatarView>
com.dlsc.gemsfx.skins.GemsSkinBase<AvatarView>
com.dlsc.gemsfx.skins.AvatarViewSkin
All Implemented Interfaces:
javafx.scene.control.Skin<AvatarView>

public class AvatarViewSkin extends GemsSkinBase<AvatarView>
Skin for the AvatarView control.

The skin switches between an image, initials text, or a fallback icon and clips the content according to the avatar shape.

  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a skin for the given avatar view.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Removes all registered listeners, event handlers, and event filters, then delegates to SkinBase.dispose().

    Methods inherited from class javafx.scene.control.SkinBase

    computeBaselineOffset, computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, consumeMouseEvents, executeAccessibleAction, getChildren, getClassCssMetaData, getCssMetaData, getNode, getSkinnable, layoutChildren, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, queryAccessibleAttribute, registerChangeListener, registerInvalidationListener, registerListChangeListener, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, unregisterChangeListeners, unregisterInvalidationListeners, unregisterListChangeListeners

    Methods inherited from class Object

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

    • AvatarViewSkin

      public AvatarViewSkin(AvatarView avatar)
      Creates a skin for the given avatar view.
      Parameters:
      avatar - the avatar view rendered by this skin
  • Method Details

    • dispose

      public void dispose()
      Description copied from class: GemsSkinBase
      Removes all registered listeners, event handlers, and event filters, then delegates to SkinBase.dispose().
      Specified by:
      dispose in interface javafx.scene.control.Skin<AvatarView>
      Overrides:
      dispose in class GemsSkinBase<AvatarView>