@Override public void paint(Graphics g, JComponent c) { Graphics2D graphics = (Graphics2D) g.create(); BackgroundPaintingUtils.update(graphics, c, false); float alpha = SubstanceColorSchemeUtilities.getAlpha(this.scrollbar, ComponentState.getState(this.thumbModel, this.scrollbar)); graphics .setComposite(LafWidgetUtilities.getAlphaComposite(c, alpha, g)); super.paint(graphics, c); graphics.dispose(); }
@Override public void paint(Graphics g, JComponent c) { Graphics2D graphics = (Graphics2D) g.create(); BackgroundPaintingUtils.update(graphics, c, false); float alpha = SubstanceColorSchemeUtilities.getAlpha(this.scrollbar, ComponentState.getState(this.thumbModel, this.scrollbar)); graphics .setComposite(LafWidgetUtilities.getAlphaComposite(c, alpha, g)); super.paint(graphics, c); graphics.dispose(); }
@Override public Icon getDisabledIcon(JComponent component, Icon icon) { if (icon == null) return null; SubstanceColorScheme colorScheme = SubstanceColorSchemeUtilities .getColorScheme(component, ComponentState.DISABLED_UNSELECTED); BufferedImage result = SubstanceImageCreator.getColorSchemeImage( component, icon, colorScheme, 0.5f); float alpha = SubstanceColorSchemeUtilities.getAlpha(component, ComponentState.DISABLED_UNSELECTED); if (alpha < 1.0f) { BufferedImage intermediate = SubstanceCoreUtilities.getBlankImage( result.getWidth(), result.getHeight()); Graphics2D g2d = intermediate.createGraphics(); g2d.setComposite(AlphaComposite.SrcOver.derive(alpha)); g2d.drawImage(result, 0, 0, null); g2d.dispose(); result = intermediate; } return new IconUIResource(new ImageIcon(result)); } }
@Override public Icon getDisabledIcon(JComponent component, Icon icon) { if (icon == null) return null; SubstanceColorScheme colorScheme = SubstanceColorSchemeUtilities .getColorScheme(component, ComponentState.DISABLED_UNSELECTED); BufferedImage result = SubstanceImageCreator.getColorSchemeImage( component, icon, colorScheme, 0.5f); float alpha = SubstanceColorSchemeUtilities.getAlpha(component, ComponentState.DISABLED_UNSELECTED); if (alpha < 1.0f) { BufferedImage intermediate = SubstanceCoreUtilities.getBlankImage( result.getWidth(), result.getHeight()); Graphics2D g2d = intermediate.createGraphics(); g2d.setComposite(AlphaComposite.SrcOver.derive(alpha)); g2d.drawImage(result, 0, 0, null); g2d.dispose(); result = intermediate; } return new IconUIResource(new ImageIcon(result)); } }
float alpha = SubstanceColorSchemeUtilities.getAlpha(this.tree, this.tree.isEnabled() ? ComponentState.ENABLED : ComponentState.DISABLED_UNSELECTED);
float alpha = SubstanceColorSchemeUtilities.getAlpha(this.tree, this.tree.isEnabled() ? ComponentState.ENABLED : ComponentState.DISABLED_UNSELECTED);
float alpha = SubstanceColorSchemeUtilities.getAlpha(this.slider, currState);
float alpha = SubstanceColorSchemeUtilities.getAlpha(this.slider, currState);
float stateAlpha = SubstanceColorSchemeUtilities.getAlpha(progressBar, progressState); g2d.setComposite(LafWidgetUtilities.getAlphaComposite(progressBar,
float stateAlpha = SubstanceColorSchemeUtilities.getAlpha(progressBar, progressState); g2d.setComposite(LafWidgetUtilities.getAlphaComposite(progressBar,
float labelAlpha = SubstanceColorSchemeUtilities.getAlpha(label, labelState); if (text != null) {
extraAlpha = SubstanceColorSchemeUtilities.getAlpha(combo, modelStateInfo.getCurrModelState());
float labelAlpha = SubstanceColorSchemeUtilities.getAlpha(label, labelState); if (text != null) {
extraAlpha = SubstanceColorSchemeUtilities.getAlpha(combo, modelStateInfo.getCurrModelState());
.getStateContributionMap(); float alpha = SubstanceColorSchemeUtilities.getAlpha(this.splitPane, currState);
.getTransitionTracker(); float buttonAlpha = SubstanceColorSchemeUtilities.getAlpha(button, ComponentState.getState(button));
.getTransitionTracker(); float buttonAlpha = SubstanceColorSchemeUtilities.getAlpha(button, ComponentState.getState(button));
extraAlpha = SubstanceColorSchemeUtilities.getAlpha(button, modelStateInfo.getCurrModelState());
float alpha = SubstanceColorSchemeUtilities.getAlpha(component, state); if (alpha < 1.0f) {
float alpha = SubstanceColorSchemeUtilities.getAlpha(component, state); if (alpha < 1.0f) {