@Override public Object createValue(UIDefaults table) { return SubstanceIconFactory .getSliderVerticalIcon( SubstanceSizeUtils .getSliderIconSize(SubstanceSizeUtils .getControlFontSize()) - 2, true); } },
@Override public Object createValue(UIDefaults table) { return SubstanceIconFactory .getSliderHorizontalIcon( SubstanceSizeUtils .getSliderIconSize(SubstanceSizeUtils .getControlFontSize()) - 2, 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); } },
@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 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); }