Graphics2D graphics = (Graphics2D) g.create();
float cyclePos = 1.0f;
FadeTracker fadeTracker = FadeTracker.getInstance();
boolean isFocusAnimated = fadeTracker.isTracked(c, FadeKind.FOCUS);
float radius = this.radiusScaleFactor
* SubstanceSizeUtils
.getClassicButtonCornerRadius(SubstanceSizeUtils
.getComponentFontSize(c));
ComponentState state = isEnabled ? ComponentState.DEFAULT
: ComponentState.DISABLED_UNSELECTED;
SubstanceColorScheme borderColorScheme = SubstanceColorSchemeUtilities
.getColorScheme(c, ColorSchemeAssociationKind.BORDER, state);
SubstanceColorScheme borderColorScheme2 = borderColorScheme;
float finalAlpha = alpha;
if (isFocusAnimated || c.hasFocus()) {
if (isFocusAnimated) {
cyclePos = fadeTracker.getFade(c, FadeKind.FOCUS);
}
borderColorScheme2 = SubstanceColorSchemeUtilities.getColorScheme(
c, ColorSchemeAssociationKind.BORDER,
ComponentState.SELECTED);
} else {