/** * Returns the border painter for the specified component. * * @param comp * Component. * @return Border painter for the specified component. * @see SubstanceSkin#getBorderPainter() */ public static SubstanceBorderPainter getBorderPainter(Component comp) { return SubstanceCoreUtilities.getSkin(comp).getBorderPainter(); }
/** * Returns the fill painter of the specified component. * * @param comp * Component. * @return The fill painter of the specified component. * @see SubstanceSkin#getFillPainter() */ public static SubstanceFillPainter getFillPainter(Component comp) { return SubstanceCoreUtilities.getSkin(comp).getFillPainter(); }
/** * Returns the fill painter of the specified component. * * @param comp * Component. * @return The fill painter of the specified component. * @see SubstanceSkin#getFillPainter() */ public static SubstanceFillPainter getFillPainter(Component comp) { return SubstanceCoreUtilities.getSkin(comp).getFillPainter(); }
/** * Returns the border painter for the specified component. * * @param comp * Component. * @return Border painter for the specified component. * @see SubstanceSkin#getBorderPainter() */ public static SubstanceBorderPainter getBorderPainter(Component comp) { return SubstanceCoreUtilities.getSkin(comp).getBorderPainter(); }
public void drawWatermarkImage(Graphics graphics, Component c, int x, int y, int width, int height) { SubstanceSkin skin = SubstanceCoreUtilities.getSkin(c); Graphics2D g2d = (Graphics2D) graphics.create(); g2d.setComposite(LafWidgetUtilities .getAlphaComposite(c, 0.2f, graphics)); g2d.setColor(skin.getWatermarkColorScheme().getWatermarkLightColor()); g2d.fillRect(x, y, width, height); g2d.dispose(); }
public Icon getColorSchemeIcon(SubstanceColorScheme scheme) { return SubstanceIconFactory .getTitlePaneIcon( SubstanceIconFactory.IconKind.RESTORE, scheme, SubstanceCoreUtilities .getSkin( SubstanceInternalFrameTitlePane.this) .getBackgroundColorScheme( DecorationAreaType.SECONDARY_TITLE_PANE)); } }, "substance.internalFrame.restoreIcon");
public Icon getColorSchemeIcon(SubstanceColorScheme scheme) { return SubstanceIconFactory .getTitlePaneIcon( SubstanceIconFactory.IconKind.MINIMIZE, scheme, SubstanceCoreUtilities .getSkin( SubstanceInternalFrameTitlePane.this) .getBackgroundColorScheme( DecorationAreaType.SECONDARY_TITLE_PANE)); } }, "substance.internalFrame.minIcon");
public Icon getColorSchemeIcon(SubstanceColorScheme scheme) { return SubstanceIconFactory .getTitlePaneIcon( SubstanceIconFactory.IconKind.CLOSE, scheme, SubstanceCoreUtilities .getSkin( SubstanceInternalFrameTitlePane.this) .getBackgroundColorScheme( DecorationAreaType.SECONDARY_TITLE_PANE)); } }, "substance.internalFrame.closeIcon");
public Icon getColorSchemeIcon( SubstanceColorScheme scheme) { return SubstanceIconFactory .getTitlePaneIcon( SubstanceIconFactory.IconKind.MINIMIZE, scheme, SubstanceCoreUtilities .getSkin(rootPane) .getBackgroundColorScheme( DecorationAreaType.PRIMARY_TITLE_PANE)); } }, "substance.titlePane.minIcon");
public Icon getColorSchemeIcon( SubstanceColorScheme scheme) { return SubstanceIconFactory .getTitlePaneIcon( SubstanceIconFactory.IconKind.MAXIMIZE, scheme, SubstanceCoreUtilities .getSkin(rootPane) .getBackgroundColorScheme( DecorationAreaType.PRIMARY_TITLE_PANE)); } }, "substance.titlePane.maxIcon");
@Override public Icon getColorSchemeIcon( SubstanceColorScheme scheme) { return SubstanceIconFactory .getTitlePaneIcon( SubstanceIconFactory.IconKind.MAXIMIZE, scheme, SubstanceCoreUtilities .getSkin(rootPane) .getBackgroundColorScheme( DecorationAreaType.PRIMARY_TITLE_PANE)); } }, "substance.titlePane.maxIcon");
public Icon getColorSchemeIcon(SubstanceColorScheme scheme) { return SubstanceIconFactory .getTitlePaneIcon( SubstanceIconFactory.IconKind.CLOSE, scheme, SubstanceCoreUtilities .getSkin(rootPane) .getBackgroundColorScheme( DecorationAreaType.PRIMARY_TITLE_PANE)); } }, "substance.titlePane.closeIcon");
@Override public Icon getColorSchemeIcon(SubstanceColorScheme scheme) { return SubstanceIconFactory .getTitlePaneIcon( SubstanceIconFactory.IconKind.MAXIMIZE, scheme, SubstanceCoreUtilities .getSkin( SubstanceInternalFrameTitlePane.this) .getBackgroundColorScheme(getThisDecorationType())); } }, "substance.internalFrame.maxIcon");
@Override public Icon getColorSchemeIcon(SubstanceColorScheme scheme) { return SubstanceIconFactory .getTitlePaneIcon( SubstanceIconFactory.IconKind.CLOSE, scheme, SubstanceCoreUtilities .getSkin( SubstanceInternalFrameTitlePane.this) .getBackgroundColorScheme(getThisDecorationType())); } }, "substance.internalFrame.closeIcon");
private SubstanceColorScheme getColorScheme(Component c) { JRootPane rp = c instanceof JRootPane ? (JRootPane) c : SwingUtilities.getRootPane(c); SubstanceSkin skin = SubstanceCoreUtilities.getSkin(c); if (skin == null) return null; DecorationAreaType type = getRootPaneType(rp); return skin.getBackgroundColorScheme(type); }
@Override public Icon getColorSchemeIcon(SubstanceColorScheme scheme) { return SubstanceIconFactory .getTitlePaneIcon( SubstanceIconFactory.IconKind.MINIMIZE, scheme, SubstanceCoreUtilities .getSkin( SubstanceInternalFrameTitlePane.this) .getBackgroundColorScheme(getThisDecorationType())); } }, "substance.internalFrame.minIcon");
@Override public Icon getColorSchemeIcon(SubstanceColorScheme scheme) { return SubstanceIconFactory .getTitlePaneIcon( SubstanceIconFactory.IconKind.RESTORE, scheme, SubstanceCoreUtilities .getSkin( SubstanceInternalFrameTitlePane.this) .getBackgroundColorScheme(getThisDecorationType())); } }, "substance.internalFrame.restoreIcon");
public UpdateOptimizationInfo(JComponent component) { this.component = component; this.toDrawWatermark = SubstanceCoreUtilities .toDrawWatermark(this.component); this.defaultScheme = SubstanceColorSchemeUtilities.getColorScheme( this.component, ComponentState.ENABLED); this.decorationAreaType = SubstanceLookAndFeel .getDecorationType(this.component); SubstanceSkin skin = SubstanceCoreUtilities.getSkin(this.component); this.isInDecorationArea = (this.decorationAreaType != null) && skin.isRegisteredAsDecorationArea(this.decorationAreaType) && SubstanceCoreUtilities.isOpaque(this.component); }
@Override protected void installDefaults() { super.installDefaults(); if (SubstanceLookAndFeel.isCurrentLookAndFeel()) { this.setForeground(SubstanceColorUtilities .getForegroundColor(SubstanceCoreUtilities.getSkin( this.frame).getActiveColorScheme( DecorationAreaType.SECONDARY_TITLE_PANE))); } // this.wasClosable = this.frame.isClosable(); }
@Override protected void installDefaults() { super.installDefaults(); if (SubstanceLookAndFeel.isCurrentLookAndFeel()) { this.setForeground(SubstanceColorUtilities .getForegroundColor(SubstanceCoreUtilities.getSkin( this.frame).getActiveColorScheme( getThisDecorationType()))); } // this.wasClosable = this.frame.isClosable(); }