/** * Create the <code>Action</code>s that get associated with the buttons and * menu items. */ private void createActions() { this.closeAction = new CloseAction(); if (this.getWindowDecorationStyle() == JRootPane.FRAME) { this.iconifyAction = new IconifyAction(); this.restoreAction = new RestoreAction(); this.maximizeAction = new MaximizeAction(); } }
@Override public Icon getArrowIcon(int orientation) { return SubstanceImageCreator.getArrowIcon(SubstanceSizeUtils .getControlFontSize(), orientation, SubstanceColorSchemeUtilities.getColorScheme(null, ComponentState.DEFAULT)); }
final JComponent titleBar = SubstanceCoreUtilities.getTitlePaneComponent(frame); titleToolbar.putClientProperty(SubstanceTitlePaneUtilities.EXTRA_COMPONENT_KIND, SubstanceTitlePaneUtilities.ExtraComponentKind.TRAILING); titleBar.add(titleToolbar);
public static Icon getTreeIcon(JTree tree, boolean isCollapsed) { int fontSize = SubstanceSizeUtils.getComponentFontSize(tree); int size = SubstanceSizeUtils.getTreeIconSize(fontSize); HashMapKey key = SubstanceCoreUtilities.getHashKey(size, isCollapsed); if (SubstanceIconFactory.treeIcons.get(key) == null) { Icon icon = new TreeIcon(size, isCollapsed); SubstanceIconFactory.treeIcons.put(key, icon); } return SubstanceIconFactory.treeIcons.get(key); }
@Override public Icon getColorSchemeIcon(SubstanceColorScheme scheme) { int fontSize = SubstanceSizeUtils .getComponentFontSize(component); return SubstanceImageCreator.getArrowIcon(fontSize, orientation, scheme); } };
@Override public Icon getLockIcon(Component c) { return SubstanceImageCreator.makeTransparent(null, SubstanceImageCreator.getSmallLockIcon( SubstanceColorSchemeUtilities.getColorScheme(null, ComponentState.ENABLED), c), 0.3); }
public Icon getColorSchemeIcon( SubstanceColorScheme scheme) { return SubstanceImageCreator .getDoubleArrowIconDelta(SubstanceSizeUtils .getComponentFontSize(group), 0, 3, 0, SwingConstants.NORTH, scheme); } }, colorSchemeAssociationDelegate,
/** * Returns <code>maximize</code> icon. * * @param scheme * Color scheme for the icon. * @return <code>Maximize</code> icon. */ public static Icon getMaximizeIcon(SubstanceColorScheme scheme, SubstanceColorScheme backgroundScheme) { int iSize = SubstanceSizeUtils.getTitlePaneIconSize(); return getMaximizeIcon(iSize, scheme, backgroundScheme); }
/** * Returns <code>minimize</code> icon. * * @param scheme * Color scheme for the icon. * @return <code>Minimize</code> icon. */ public static Icon getMinimizeIcon(SubstanceColorScheme scheme, SubstanceColorScheme backgroundScheme) { int iSize = SubstanceSizeUtils.getTitlePaneIconSize(); return getMinimizeIcon(iSize, scheme, backgroundScheme); }
/** * Simple constructor. * * @param ui * Associated UI. */ public SubstanceSplitPaneDivider(SubstanceSplitPaneUI ui) { super(ui); this.setLayout(new SubstanceDividerLayout()); }
/** * Returns <code>close</code> icon. * * @param scheme * Color scheme for the icon. * @return <code>Close</code> icon. */ public static Icon getCloseIcon(SubstanceColorScheme scheme, SubstanceColorScheme backgroundScheme) { return SubstanceImageCreator.getCloseIcon(SubstanceSizeUtils .getTitlePaneIconSize(), scheme, backgroundScheme); }
.getAlphaColor(scheme.getForegroundColor(), 32)); this.addOverlayPainter(toolbarTopLineOverlayPainter, DecorationAreaType.TOOLBAR); (SubstanceColorScheme scheme) -> scheme.getUltraDarkColor().darker(), (SubstanceColorScheme scheme) -> SubstanceColorUtilities .getAlphaColor(scheme.getForegroundColor(), 32)); this.addOverlayPainter(footerTopBezelOverlayPainter, DecorationAreaType.FOOTER);
/** * Create the <code>Action</code>s that get associated with the buttons and * menu items. */ private void createActions() { this.closeAction = new CloseAction(); if (this.getWindowDecorationStyle() == JRootPane.FRAME) { this.iconifyAction = new IconifyAction(); this.restoreAction = new RestoreAction(); this.maximizeAction = new MaximizeAction(); } }
@Override public Icon getArrowIcon(int orientation) { return SubstanceImageCreator.getArrowIcon(SubstanceSizeUtils .getControlFontSize(), orientation, SubstanceColorSchemeUtilities.getColorScheme(null, ComponentState.DEFAULT)); }
public Icon getColorSchemeIcon(SubstanceColorScheme scheme) { // fix for defect 279 - tab pane might not yet have the // font installed. int fontSize = SubstanceSizeUtils .getComponentFontSize(tabPane); return SubstanceImageCreator.getArrowIcon(fontSize, direction, scheme); } }, "substance.tabbedpane.scroll." + direction);
public Icon getColorSchemeIcon( SubstanceColorScheme scheme) { return SubstanceImageCreator .getDoubleArrowIconDelta(SubstanceSizeUtils .getComponentFontSize(group), 0, 3, 0, SwingConstants.SOUTH, scheme); } }, colorSchemeAssociationDelegate,
/** * Returns <code>maximize</code> icon. * * @param scheme * Color scheme for the icon. * @return <code>Maximize</code> icon. */ public static Icon getMaximizeIcon(SubstanceColorScheme scheme, SubstanceColorScheme backgroundScheme) { int iSize = SubstanceSizeUtils.getTitlePaneIconSize(); return getMaximizeIcon(iSize, scheme, backgroundScheme); }
/** * Returns <code>minimize</code> icon. * * @param scheme * Color scheme for the icon. * @return <code>Minimize</code> icon. */ public static Icon getMinimizeIcon(SubstanceColorScheme scheme, SubstanceColorScheme backgroundScheme) { int iSize = SubstanceSizeUtils.getTitlePaneIconSize(); return getMinimizeIcon(iSize, scheme, backgroundScheme); }
@Override public Icon getColorSchemeIcon(SubstanceColorScheme scheme) { // fix for defect 279 - tab pane might not yet have the // font installed. int fontSize = SubstanceSizeUtils .getComponentFontSize(tabPane); return SubstanceImageCreator.getArrowIcon(fontSize, direction, scheme); } }, "substance.tabbedpane.scroll." + direction);
@Override public Icon getColorSchemeIcon(SubstanceColorScheme scheme) { int fontSize = SubstanceSizeUtils .getComponentFontSize(component); return SubstanceImageCreator.getArrowIcon(fontSize, orientation, scheme); } };