Enum RadianceThemingSlices.FocusKind

java.lang.Object
java.lang.Enum<RadianceThemingSlices.FocusKind>
org.pushingpixels.radiance.theming.api.RadianceThemingSlices.FocusKind
All Implemented Interfaces:
Serializable, Comparable<RadianceThemingSlices.FocusKind>, java.lang.constant.Constable
Enclosing class:
RadianceThemingSlices

public static enum RadianceThemingSlices.FocusKind extends Enum<RadianceThemingSlices.FocusKind>
Enumerates focus indication kinds.
See Also:
  • Enum Constant Details

  • Constructor Details

    • FocusKind

      private FocusKind()
  • Method Details

    • values

      public static RadianceThemingSlices.FocusKind[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static RadianceThemingSlices.FocusKind valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • paintFocus

      public abstract void paintFocus(Component mainComp, Component focusedComp, TransitionAwareUI transitionAwareUI, Graphics2D graphics, double scaleFactor, Shape focusShape, Rectangle textRect, float extraPadding)
    • getDashLength

      protected final float getDashLength(int fontSize)
      Returns DPI-aware dash length for dash-based focus painting.
      Parameters:
      fontSize - The font size of the component for focus painting.
      Returns:
      DPI-aware dash length for dash-based focus painting.
    • getDashGap

      protected final float getDashGap(int fontSize)
      Returns DPI-aware dash gap for dash-based focus painting.
      Parameters:
      fontSize - The font size of the component for focus painting.
      Returns:
      DPI-aware dash gap for dash-based focus painting.
    • isAnimated

      public boolean isAnimated()
      Returns indication whether this focus kind can be animated. For example, focus rings painted with solid lines are generally static.
      Returns:
      true if this focus kind can be animated, false otherwise.