Interface CommandButtonFollowColorTokensIcon.Delegate

  • Enclosing class:
    CommandButtonFollowColorTokensIcon
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public static interface CommandButtonFollowColorTokensIcon.Delegate
    The delegate needs to implement the method in this interface based on the provided color tokens. The color tokens are computed based on the transitions that are happening on the associated command button.
    • Method Detail

      • drawColorTokensIcon

        void drawColorTokensIcon​(java.awt.Graphics2D g,
                                 ContainerColorTokens tokens,
                                 float alpha,
                                 int width,
                                 int height)
        Draws the icon that matches the specified color tokens.
        Parameters:
        tokens - Color tokens.
        width - Icon width.
        height - Icon height.