Class BasePolygonShaper

    • Constructor Summary

      Constructors 
      Constructor Description
      BasePolygonShaper​(java.lang.String resourceName, double topCoef, double leftCoef, double bottomCoef, double rightCoef)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.swing.border.Border getButtonBorder​(java.awt.Dimension preferredSize)  
      javax.swing.border.Border getButtonBorder​(javax.swing.AbstractButton button)  
      java.awt.Shape getButtonOutline​(javax.swing.AbstractButton button, float extraInsets, float width, float height, boolean isInner)  
      java.awt.Dimension getPreferredSize​(javax.swing.AbstractButton button, java.awt.Dimension uiPreferredSize)  
      boolean isProportionate​()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.pushingpixels.substance.api.trait.SubstanceTrait

        getDisplayName
    • Constructor Detail

      • BasePolygonShaper

        public BasePolygonShaper​(java.lang.String resourceName,
                                 double topCoef,
                                 double leftCoef,
                                 double bottomCoef,
                                 double rightCoef)
    • Method Detail

      • getPreferredSize

        public java.awt.Dimension getPreferredSize​(javax.swing.AbstractButton button,
                                                   java.awt.Dimension uiPreferredSize)
        Specified by:
        getPreferredSize in interface org.pushingpixels.substance.api.shaper.SubstanceButtonShaper
      • getButtonBorder

        public javax.swing.border.Border getButtonBorder​(javax.swing.AbstractButton button)
        Specified by:
        getButtonBorder in interface org.pushingpixels.substance.api.shaper.SubstanceButtonShaper
      • getButtonBorder

        public javax.swing.border.Border getButtonBorder​(java.awt.Dimension preferredSize)
      • getButtonOutline

        public java.awt.Shape getButtonOutline​(javax.swing.AbstractButton button,
                                               float extraInsets,
                                               float width,
                                               float height,
                                               boolean isInner)
        Specified by:
        getButtonOutline in interface org.pushingpixels.substance.api.shaper.SubstanceButtonShaper
      • isProportionate

        public boolean isProportionate​()
        Specified by:
        isProportionate in interface org.pushingpixels.substance.api.shaper.SubstanceButtonShaper