public static void paintText(Graphics g, JComponent component, Rectangle textRect, String text, int mnemonicIndex, StateTransitionTracker.ModelStateInfo modelStateInfo, float textAlpha) { Color fgColor = getForegroundColor(component, text, modelStateInfo, textAlpha); SubstanceTextUtilities.paintText(g, component, textRect, text, mnemonicIndex, component.getFont(), fgColor, null); }
public static void paintText(Graphics g, JComponent component, Rectangle textRect, String text, int mnemonicIndex, StateTransitionTracker.ModelStateInfo modelStateInfo, float textAlpha) { Color fgColor = getForegroundColor(component, text, modelStateInfo, textAlpha); SubstanceTextUtilities.paintText(g, component, textRect, text, mnemonicIndex, component.getFont(), fgColor, null); }
/** * Paints the specified text. * * @param g * Graphics context. * @param component * Component. * @param textRect * Text rectangle. * @param text * Text to paint. * @param mnemonicIndex * Mnemonic index. * @param state * Component state. * @param textAlpha * Alpha channel for painting the text. */ public static void paintText(Graphics g, JComponent component, Rectangle textRect, String text, int mnemonicIndex, ComponentState state, float textAlpha) { Color fgColor = getForegroundColor(component, text, state, textAlpha); SubstanceTextUtilities.paintText(g, component, textRect, text, mnemonicIndex, component.getFont(), fgColor, null); }
/** * Paints the specified text. * * @param g * Graphics context. * @param component * Component. * @param textRect * Text rectangle. * @param text * Text to paint. * @param mnemonicIndex * Mnemonic index. * @param state * Component state. * @param prevState * Component previous state. * @param textAlpha * Alpha channel for painting the text. */ public static void paintText(Graphics g, JComponent component, Rectangle textRect, String text, int mnemonicIndex, ComponentState state, float textAlpha) { Color fgColor = getForegroundColor(component, text, state, textAlpha); SubstanceTextUtilities.paintText(g, component, textRect, text, mnemonicIndex, component.getFont(), fgColor, null); }
.getAlpha(monthView, ComponentState.DISABLED_UNSELECTED); fgColor = SubstanceTextUtilities.getForegroundColor( monthView, " ", ComponentState.DISABLED_UNSELECTED, textAlpha); float textAlpha = SubstanceColorSchemeUtilities.getAlpha( monthView, ComponentState.DISABLED_UNSELECTED); result.setForeground(SubstanceTextUtilities.getForegroundColor( monthView, " ", ComponentState.DISABLED_UNSELECTED, textAlpha));
combo, currState); Color fg = SubstanceTextUtilities .getForegroundColor(combo, ((JLabel) result).getText(), modelStateInfo, comboAlpha); result.setForeground(fg);
combo, currState); Color fg = SubstanceTextUtilities .getForegroundColor(combo, ((JLabel) result).getText(), modelStateInfo, comboAlpha); result.setForeground(fg);