@Override public FontUIResource getControlFont() { return this.getWrappedFont(this.delegate.getControlFont()); }
@Override public FontUIResource getControlFont() { return this.getSubstanceFont(this.systemFontSet.getControlFont()); }
public FontUIResource getControlFont() { return this.getSubstanceFont(this.systemFontSet.getControlFont()); }
public FontUIResource getControlFont() { return this.getWrappedFont(this.delegate.getControlFont()); }
/** * Gets the current control font size. * * @return Control font size. */ public static int getControlFontSize() { if (controlFontSize > 0) return controlFontSize; FontPolicy fPolicy = SubstanceLookAndFeel.getFontPolicy(); FontSet fSet = fPolicy.getFontSet("Substance", null); controlFontSize = fSet.getControlFont().getSize(); return controlFontSize; }
/** * Gets the current control font size. * * @return Control font size. */ public static int getControlFontSize() { if (controlFontSize > 0) return controlFontSize; FontPolicy fPolicy = SubstanceLookAndFeel.getFontPolicy(); FontSet fSet = fPolicy.getFontSet("Substance", null); controlFontSize = fSet.getControlFont().getSize(); return controlFontSize; }
FontSet substanceFontSet = SubstanceLookAndFeel.getFontPolicy() .getFontSet("Substance", null); Font controlFont = substanceFontSet.getControlFont();
FontSet substanceFontSet = SubstanceLookAndFeel.getFontPolicy() .getFontSet("Substance", null); Font controlFont = substanceFontSet.getControlFont();
@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); }
Font controlFont = fontSet.getControlFont(); Font menuFont = fontSet.getMenuFont(); Font messageFont = fontSet.getMessageFont();
Font controlFont = fontSet.getControlFont(); Font menuFont = fontSet.getMenuFont(); Font messageFont = fontSet.getMessageFont();
"Substance", null); Font controlFont = fontSet.getControlFont();