@Override public Insets getBorderInsets(Component c) { return this.getBorderInsets(c, new Insets(0, 0, 0, 0)); }
@Override public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { if (SubstanceCoreUtilities.isRoundedCorners(c)) { paintRoundedBorder(c, g, x, y, w, h); } else { paintSquareBorder(c, g, x, y, w, h); } }
@Override public Object createValue(UIDefaults table) { return new BorderUIResource.CompoundBorderUIResource( new SubstanceBorder(), new BasicBorders.MarginBorder()); } };
@Override public Object createValue(UIDefaults table) { return new BorderUIResource.CompoundBorderUIResource( new SubstanceTextComponentBorder(SubstanceSizeUtils .getSpinnerBorderInsets(SubstanceSizeUtils .getControlFontSize())), new BasicBorders.MarginBorder()); } };
@Override public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { paintBorder((JComponent) c, g, x, y, width, height, c.isEnabled(), c .hasFocus()); }
@Override public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { paintBorder(c, g, x, y, width, height, c.isEnabled(), c.hasFocus(), this.alpha); }
@Override public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { paintBorder((JComponent) c, g, x, y, width, height, c.isEnabled(), c .hasFocus()); }
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 Object createValue(UIDefaults table) { return new SubstanceBorder( SubstanceSizeUtils .getToolTipBorderInsets(SubstanceSizeUtils .getControlFontSize())); } };
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { paintBorder((JComponent) c, g, x, y, width, height, c.isEnabled(), c .hasFocus()); }
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { paintBorder(c, g, x, y, width, height, c.isEnabled(), c.hasFocus(), this.alpha); }
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { paintBorder((JComponent) c, g, x, y, width, height, c.isEnabled(), c .hasFocus()); }
@Override public Insets getBorderInsets(Component c) { return this.getBorderInsets(c, new Insets(0, 0, 0, 0)); }
@Override public Object createValue(UIDefaults table) { return new SubstanceBorder(SubstanceSizeUtils .getToolTipBorderInsets(SubstanceSizeUtils .getControlFontSize())); } };
@Override public Object createValue(UIDefaults table) { return new BorderUIResource.CompoundBorderUIResource( new SubstanceBorder(), new BasicBorders.MarginBorder()); } };
@Override public Object createValue(UIDefaults table) { return new SubstanceBorder(SubstanceSizeUtils .getComboBorderInsets(SubstanceSizeUtils .getControlFontSize())); } };
@Override public Object createValue(UIDefaults table) { return new SubstanceBorder( SubstanceSizeUtils .getComboBorderInsets(SubstanceSizeUtils .getControlFontSize())); } };
@Override protected void configurePopup() { super.configurePopup(); setBorder(new SubstanceBorder(new Insets(0, 2, 2, 2))); }
@Override protected void installDefaults() { super.installDefaults(); Border curr = this.desktop.getBorder(); if ((curr == null) || (curr instanceof UIResource)) { this.desktop.setBorder(new SubstanceBorder()); } }
@Override protected void installDefaults() { super.installDefaults(); Border curr = this.desktop.getBorder(); if ((curr == null) || (curr instanceof UIResource)) { this.desktop.setBorder(new SubstanceBorder()); } }