Enum RadianceThemingSlices.FocusKind

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ALL
      Focus indication around the whole component.
      ALL_INNER
      Focus indication around the whole component, but moved 1 pixel inside the component.
      ALL_STRONG_INNER
      Focus indication around the whole component, but moved 1 pixel inside the component.
      NONE
      No focus indication.
      STRONG_UNDERLINE
      Strong focus indication under the component text.
      TEXT
      Focus indication around the text.
      UNDERLINE
      Focus indication under the component text.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private FocusKind()  
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected float getDashGap​(int fontSize)
      Returns DPI-aware dash gap for dash-based focus painting.
      protected float getDashLength​(int fontSize)
      Returns DPI-aware dash length for dash-based focus painting.
      boolean isAnimated()
      Returns indication whether this focus kind can be animated.
      abstract void paintFocus​(java.awt.Component mainComp, java.awt.Component focusedComp, TransitionAwareUI transitionAwareUI, java.awt.Graphics2D graphics, double scaleFactor, java.awt.Shape focusShape, java.awt.Rectangle textRect, float extraPadding)  
      static RadianceThemingSlices.FocusKind valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static RadianceThemingSlices.FocusKind[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • FocusKind

        private FocusKind()
    • Method Detail

      • values

        public static RadianceThemingSlices.FocusKind[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (RadianceThemingSlices.FocusKind c : RadianceThemingSlices.FocusKind.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static RadianceThemingSlices.FocusKind valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • paintFocus

        public abstract void paintFocus​(java.awt.Component mainComp,
                                        java.awt.Component focusedComp,
                                        TransitionAwareUI transitionAwareUI,
                                        java.awt.Graphics2D graphics,
                                        double scaleFactor,
                                        java.awt.Shape focusShape,
                                        java.awt.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.