@Override public void paintPasswordStrengthMarker(Graphics g, int x, int y, int width, int height, PasswordStrength pStrength) { Graphics2D g2 = (Graphics2D) g.create(); SubstanceColorScheme colorScheme = null; if (pStrength == PasswordStrength.WEAK) colorScheme = SubstanceColorSchemeUtilities.ORANGE; if (pStrength == PasswordStrength.MEDIUM) colorScheme = SubstanceColorSchemeUtilities.YELLOW; if (pStrength == PasswordStrength.STRONG) colorScheme = SubstanceColorSchemeUtilities.GREEN; if (colorScheme != null) { SubstanceImageCreator.paintRectangularBackground(null, g, x, y, width, height, colorScheme, 0.5f, false); } g2.dispose(); }
@Override public void paintPasswordStrengthMarker(Graphics g, int x, int y, int width, int height, PasswordStrength pStrength) { Graphics2D g2 = (Graphics2D) g.create(); SubstanceColorScheme colorScheme = null; if (pStrength == PasswordStrength.WEAK) colorScheme = SubstanceColorSchemeUtilities.ORANGE; if (pStrength == PasswordStrength.MEDIUM) colorScheme = SubstanceColorSchemeUtilities.YELLOW; if (pStrength == PasswordStrength.STRONG) colorScheme = SubstanceColorSchemeUtilities.GREEN; if (colorScheme != null) { SubstanceImageCreator.paintRectangularBackground(null, g, x, y, width, height, colorScheme, 0.5f, false); } g2.dispose(); }
public void paintDecorationArea(Graphics2D graphics, Component comp, DecorationAreaType decorationAreaType, int width, int height, SubstanceSkin skin) { SubstanceImageCreator.paintRectangularBackground(comp, graphics, 0, 0, width, height, skin.getBackgroundColorScheme(decorationAreaType), 0.0f, false); } }
@Override public void paintDecorationArea(Graphics2D graphics, Component comp, DecorationAreaType decorationAreaType, int width, int height, SubstanceSkin skin) { SubstanceImageCreator.paintRectangularBackground(comp, graphics, 0, 0, width, height, skin.getBackgroundColorScheme(decorationAreaType), 0.0f, false); } }
if ((barWidth > 0) && (barHeight > 0)) { if (progressBar.getComponentOrientation().isLeftToRight()) { SubstanceImageCreator.paintRectangularBackground( progressBar, g, margin + borderDelta, margin + borderDelta, barWidth, barHeight, SubstanceImageCreator.paintRectangularBackground( progressBar, g, margin + barRectWidth - amountFull - 2 * borderDelta, margin SubstanceImageCreator.paintRectangularBackground( progressBar, g, margin + borderDelta, margin + barRectHeight - barWidth - borderDelta,
if ((barWidth > 0) && (barHeight > 0)) { if (progressBar.getComponentOrientation().isLeftToRight()) { SubstanceImageCreator.paintRectangularBackground( progressBar, g, margin + borderDelta, margin + borderDelta, barWidth, barHeight, SubstanceImageCreator.paintRectangularBackground( progressBar, g, margin + barRectWidth - amountFull - 2 * borderDelta, margin SubstanceImageCreator.paintRectangularBackground( progressBar, g, margin + borderDelta, margin + barRectHeight - barWidth - borderDelta,