Package org.pushingpixels.substance.internal.utils.border

Examples of org.pushingpixels.substance.internal.utils.border.SubstanceButtonBorder


    } else {
      Border currBorder = b.getBorder();
      if (!(currBorder instanceof SubstanceButtonBorder)) {
        b.setBorder(shaper.getButtonBorder(b));
      } else {
        SubstanceButtonBorder sbCurrBorder = (SubstanceButtonBorder) currBorder;
        if (shaper.getClass() != sbCurrBorder.getButtonShaperClass())
          b.setBorder(shaper.getButtonBorder(b));
      }
    }
    b.putClientProperty(SubstanceButtonUI.OPACITY_ORIGINAL, b.isOpaque());
    b.setOpaque(false);
View Full Code Here


   * @see
   * org.pushingpixels.substance.button.SubstanceButtonShaper#getButtonBorder
   * (javax .swing.AbstractButton)
   */
  public Border getButtonBorder(final AbstractButton button) {
    return new SubstanceButtonBorder(StandardButtonShaper.class) {
      public Insets getBorderInsets(Component c) {
        int fontSize = SubstanceSizeUtils.getComponentFontSize(button);
        Insets buttonInsets = SubstanceSizeUtils
            .getButtonInsets(fontSize);
        int focusPadding = SubstanceSizeUtils
View Full Code Here

   * @see
   * org.pushingpixels.substance.button.SubstanceButtonShaper#getButtonBorder
   * (javax .swing.AbstractButton)
   */
  public Border getButtonBorder(final AbstractButton button) {
    return new SubstanceButtonBorder(ClassicButtonShaper.class) {
      public Insets getBorderInsets(Component c) {
        int fontSize = SubstanceSizeUtils.getComponentFontSize(button);
        Insets buttonInsets = SubstanceSizeUtils
            .getButtonInsets(fontSize);
        int focusPadding = SubstanceSizeUtils
View Full Code Here

    } else {
      Border currBorder = b.getBorder();
      if (!(currBorder instanceof SubstanceButtonBorder)) {
        b.setBorder(shaper.getButtonBorder(b));
      } else {
        SubstanceButtonBorder sbCurrBorder = (SubstanceButtonBorder) currBorder;
        if (shaper.getClass() != sbCurrBorder.getButtonShaperClass())
          b.setBorder(shaper.getButtonBorder(b));
      }
    }
    b.putClientProperty(SubstanceButtonUI.OPACITY_ORIGINAL, b.isOpaque());
    // fix for defect 140
View Full Code Here

    } else {
      Border currBorder = b.getBorder();
      if (!(currBorder instanceof SubstanceButtonBorder)) {
        b.setBorder(shaper.getButtonBorder(b));
      } else {
        SubstanceButtonBorder sbCurrBorder = (SubstanceButtonBorder) currBorder;
        if (shaper.getClass() != sbCurrBorder.getButtonShaperClass())
          b.setBorder(shaper.getButtonBorder(b));
      }
    }
    b.putClientProperty(SubstanceButtonUI.OPACITY_ORIGINAL, b.isOpaque());
    // fix for defect 140
View Full Code Here

    } else {
      Border currBorder = b.getBorder();
      if (!(currBorder instanceof SubstanceButtonBorder)) {
        b.setBorder(shaper.getButtonBorder(b));
      } else {
        SubstanceButtonBorder sbCurrBorder = (SubstanceButtonBorder) currBorder;
        if (shaper.getClass() != sbCurrBorder.getButtonShaperClass())
          b.setBorder(shaper.getButtonBorder(b));
      }
    }
    b.putClientProperty(SubstanceButtonUI.OPACITY_ORIGINAL, b.isOpaque());
    b.setOpaque(false);
View Full Code Here

   * @see
   * org.pushingpixels.substance.button.SubstanceButtonShaper#getButtonBorder
   * (javax .swing.AbstractButton)
   */
  public Border getButtonBorder(final AbstractButton button) {
    return new SubstanceButtonBorder(StandardButtonShaper.class) {
      public Insets getBorderInsets(Component c) {
        int fontSize = SubstanceSizeUtils.getComponentFontSize(button);
        Insets buttonInsets = SubstanceSizeUtils
            .getButtonInsets(fontSize);
        int focusPadding = SubstanceSizeUtils
View Full Code Here

   * @see
   * org.pushingpixels.substance.button.SubstanceButtonShaper#getButtonBorder
   * (javax .swing.AbstractButton)
   */
  public Border getButtonBorder(final AbstractButton button) {
    return new SubstanceButtonBorder(ClassicButtonShaper.class) {
      public Insets getBorderInsets(Component c) {
        int fontSize = SubstanceSizeUtils.getComponentFontSize(button);
        Insets buttonInsets = SubstanceSizeUtils
            .getButtonInsets(fontSize);
        int focusPadding = SubstanceSizeUtils
View Full Code Here

TOP

Related Classes of org.pushingpixels.substance.internal.utils.border.SubstanceButtonBorder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.