@Override public Object createValue(UIDefaults table) { return SubstanceIconFactory .getSliderHorizontalIcon( SubstanceSizeUtils .getSliderIconSize(SubstanceSizeUtils .getControlFontSize()) - 2, true); } },
@Override public Object createValue(UIDefaults table) { return SubstanceIconFactory .getSliderVerticalIcon( SubstanceSizeUtils .getSliderIconSize(SubstanceSizeUtils .getControlFontSize()) - 2, true); } },
public Icon getColorSchemeIcon(SubstanceColorScheme scheme) { return SubstanceIconFactory .getTitlePaneIcon( SubstanceIconFactory.IconKind.CLOSE, scheme, SubstanceCoreUtilities .getSkin(rootPane) .getBackgroundColorScheme( DecorationAreaType.PRIMARY_TITLE_PANE)); } }, "substance.titlePane.closeIcon");
@Override protected void installDefaults(JSlider slider) { super.installDefaults(slider); Font f = slider.getFont(); if (f == null || f instanceof UIResource) { slider.setFont(new FontUIResource(SubstanceLookAndFeel .getFontPolicy().getFontSet("Substance", null) .getControlFont())); } int size = SubstanceSizeUtils.getSliderIconSize(SubstanceSizeUtils .getComponentFontSize(slider)); // System.out.println("Slider size : " + size); this.horizontalIcon = SubstanceIconFactory.getSliderHorizontalIcon( size, false); this.roundIcon = SubstanceIconFactory.getSliderRoundIcon(size); this.verticalIcon = SubstanceIconFactory.getSliderVerticalIcon(size, false); int focusIns = (int) Math.ceil(2.0 * SubstanceSizeUtils .getFocusStrokeWidth(SubstanceSizeUtils .getComponentFontSize(slider))); this.focusInsets = new Insets(focusIns, focusIns, focusIns, focusIns); }
@Override public Object createValue(UIDefaults table) { return new IconUIResource( SubstanceIconFactory.getTreeIcon(null, false)); } },
@Override protected void installDefaults(JSlider slider) { super.installDefaults(slider); Font f = slider.getFont(); if (f == null || f instanceof UIResource) { slider.setFont(new FontUIResource(SubstanceLookAndFeel .getFontPolicy().getFontSet("Substance", null) .getControlFont())); } int size = SubstanceSizeUtils.getSliderIconSize(SubstanceSizeUtils .getComponentFontSize(slider)); // System.out.println("Slider size : " + size); this.horizontalIcon = SubstanceIconFactory.getSliderHorizontalIcon( size, false); this.roundIcon = SubstanceIconFactory.getSliderRoundIcon(size); this.verticalIcon = SubstanceIconFactory.getSliderVerticalIcon(size, false); int focusIns = (int) Math.ceil(2.0 * SubstanceSizeUtils .getFocusStrokeWidth(SubstanceSizeUtils .getComponentFontSize(slider))); this.focusInsets = new Insets(focusIns, focusIns, focusIns, focusIns); }
@Override public Object createValue(UIDefaults table) { return new IconUIResource( SubstanceIconFactory.getTreeIcon(null, true)); } },
public Icon getColorSchemeIcon( SubstanceColorScheme scheme) { return SubstanceIconFactory .getTitlePaneIcon( SubstanceIconFactory.IconKind.MAXIMIZE, scheme, SubstanceCoreUtilities .getSkin(rootPane) .getBackgroundColorScheme( DecorationAreaType.PRIMARY_TITLE_PANE)); } }, "substance.titlePane.maxIcon");
public Object createValue(UIDefaults table) { return new IconUIResource(SubstanceIconFactory .getTreeIcon(null, true)); } },
public Object createValue(UIDefaults table) { return SubstanceIconFactory .getSliderHorizontalIcon( SubstanceSizeUtils .getSliderIconSize(SubstanceSizeUtils .getControlFontSize()) - 2, true); } },
public Object createValue(UIDefaults table) { return SubstanceIconFactory .getSliderVerticalIcon( SubstanceSizeUtils .getSliderIconSize(SubstanceSizeUtils .getControlFontSize()) - 2, true); } },
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 Object createValue(UIDefaults table) { return new IconUIResource(SubstanceIconFactory .getTreeIcon(null, false)); } },
public Icon getColorSchemeIcon(SubstanceColorScheme scheme) { return SubstanceIconFactory .getTitlePaneIcon( SubstanceIconFactory.IconKind.MINIMIZE, scheme, SubstanceCoreUtilities .getSkin( SubstanceInternalFrameTitlePane.this) .getBackgroundColorScheme( DecorationAreaType.SECONDARY_TITLE_PANE)); } }, "substance.internalFrame.minIcon");
@Override protected void installDefaults() { super.installDefaults(); if (SubstanceCoreUtilities.toDrawWatermark(this.tree)) this.tree.setOpaque(false); if (this.tree.getSelectionPaths() != null) { for (TreePath selectionPath : this.tree.getSelectionPaths()) { TreePathId pathId = new TreePathId(selectionPath); selectedPaths.put(pathId, selectionPath.getLastPathComponent()); } } setExpandedIcon(new IconUIResource(SubstanceIconFactory.getTreeIcon( this.tree, false))); setCollapsedIcon(new IconUIResource(SubstanceIconFactory.getTreeIcon( this.tree, true))); // instead of computing the cell renderer insets on // every cell rendering, compute it once and expose to the // SubstanceDefaultTreeCellRenderer this.cellRendererInsets = SubstanceSizeUtils .getTreeCellRendererInsets(SubstanceSizeUtils .getComponentFontSize(tree)); }
public Icon getColorSchemeIcon(SubstanceColorScheme scheme) { return SubstanceIconFactory .getTitlePaneIcon( SubstanceIconFactory.IconKind.CLOSE, scheme, SubstanceCoreUtilities .getSkin( SubstanceInternalFrameTitlePane.this) .getBackgroundColorScheme( DecorationAreaType.SECONDARY_TITLE_PANE)); } }, "substance.internalFrame.closeIcon");
@Override protected void installDefaults() { super.installDefaults(); if (SubstanceCoreUtilities.toDrawWatermark(this.tree)) this.tree.setOpaque(false); if (this.tree.getSelectionPaths() != null) { for (TreePath selectionPath : this.tree.getSelectionPaths()) { TreePathId pathId = new TreePathId(selectionPath); selectedPaths.put(pathId, selectionPath.getLastPathComponent()); } } setExpandedIcon(new IconUIResource(SubstanceIconFactory.getTreeIcon( this.tree, false))); setCollapsedIcon(new IconUIResource(SubstanceIconFactory.getTreeIcon( this.tree, true))); // instead of computing the cell renderer insets on // every cell rendering, compute it once and expose to the // SubstanceDefaultTreeCellRenderer this.cellRendererInsets = SubstanceSizeUtils .getTreeCellRendererInsets(SubstanceSizeUtils .getComponentFontSize(tree)); }
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");