@Override public void paintDecorationArea(Graphics2D graphics, Component comp, DecorationAreaType decorationAreaType, int width, int height, SubstanceSkin skin) { graphics .setColor(skin.getBackgroundColorScheme( DecorationAreaType.PRIMARY_TITLE_PANE) .getBackgroundFillColor()); graphics.fillRect(0, 0, width, height); } }
@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); } }
@Override public void paintDecorationArea(Graphics2D graphics, Component comp, DecorationAreaType decorationAreaType, int width, int height, SubstanceSkin skin) { if ((decorationAreaType == DecorationAreaType.PRIMARY_TITLE_PANE) || (decorationAreaType == DecorationAreaType.SECONDARY_TITLE_PANE)) { this.paintTitleBackground(graphics, comp, width, height, skin .getBackgroundColorScheme(decorationAreaType)); } else { this.paintExtraBackground(graphics, comp, width, height, skin .getBackgroundColorScheme(decorationAreaType)); } }
@Override public void paintDecorationArea(Graphics2D graphics, Component comp, DecorationAreaType decorationAreaType, int width, int height, SubstanceSkin skin) { if (this.decoratedAreas.contains(decorationAreaType)) { this.paintDecoratedBackground(graphics, comp, decorationAreaType, width, height, skin .getBackgroundColorScheme(decorationAreaType)); } else { this.paintSolidBackground(graphics, comp, width, height, skin .getBackgroundColorScheme(decorationAreaType)); } }
public void paintDecorationArea(Graphics2D graphics, Component comp, DecorationAreaType decorationAreaType, int width, int height, SubstanceSkin skin) { graphics .setColor(skin.getBackgroundColorScheme( DecorationAreaType.PRIMARY_TITLE_PANE) .getBackgroundFillColor()); graphics.fillRect(0, 0, width, height); } }
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.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");
@Override public Icon getColorSchemeIcon(SubstanceColorScheme scheme) { return SubstanceIconFactory .getTitlePaneIcon( SubstanceIconFactory.IconKind.CLOSE, scheme, SubstanceCoreUtilities .getSkin(rootPane) .getBackgroundColorScheme( DecorationAreaType.PRIMARY_TITLE_PANE)); } }, "substance.titlePane.closeIcon");
public Icon getColorSchemeIcon(SubstanceColorScheme scheme) { return SubstanceIconFactory .getTitlePaneIcon( SubstanceIconFactory.IconKind.MAXIMIZE, scheme, SubstanceCoreUtilities .getSkin( SubstanceInternalFrameTitlePane.this) .getBackgroundColorScheme( DecorationAreaType.SECONDARY_TITLE_PANE)); } }, "substance.internalFrame.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");
@Override public Icon getColorSchemeIcon(SubstanceColorScheme scheme) { return SubstanceIconFactory .getTitlePaneIcon( SubstanceIconFactory.IconKind.RESTORE, scheme, SubstanceCoreUtilities .getSkin( SubstanceInternalFrameTitlePane.this) .getBackgroundColorScheme(getThisDecorationType())); } }, "substance.internalFrame.restoreIcon");
@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");
/** * Creates a new close action. */ public CloseAction() { super(SubstanceCoreUtilities.getResourceBundle(rootPane).getString( "SystemMenu.close"), SubstanceImageCreator.getCloseIcon( SubstanceCoreUtilities.getSkin(rootPane) .getActiveColorScheme( DecorationAreaType.PRIMARY_TITLE_PANE), SubstanceCoreUtilities.getSkin(rootPane) .getBackgroundColorScheme( DecorationAreaType.PRIMARY_TITLE_PANE))); }
/** * Creates a new close action. */ public CloseAction() { super(SubstanceCoreUtilities.getResourceBundle(rootPane).getString( "SystemMenu.close"), SubstanceImageCreator.getCloseIcon( SubstanceCoreUtilities.getSkin(rootPane) .getActiveColorScheme(getThisDecorationType()), SubstanceCoreUtilities.getSkin(rootPane) .getBackgroundColorScheme(getThisDecorationType()))); }