Class FlatBorder

    • Constructor Summary

      Constructors 
      Constructor Description
      FlatBorder()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object applyStyleProperty​(java.lang.String key, java.lang.Object value)  
      protected int getArc​(java.awt.Component c)
      Returns the (unscaled) arc diameter of the border corners.
      protected java.awt.Paint getBorderColor​(java.awt.Component c)  
      java.awt.Insets getBorderInsets​(java.awt.Component c, java.awt.Insets insets)  
      protected float getBorderWidth​(java.awt.Component c)
      Returns the (unscaled) line thickness used to paint the border.
      protected java.awt.Color getFocusColor​(java.awt.Component c)  
      protected int getFocusWidth​(java.awt.Component c)
      Returns the (unscaled) thickness of the outer focus border.
      protected float getInnerFocusWidth​(java.awt.Component c)
      Returns the (unscaled) thickness of the inner focus border.
      protected int getLineWidth​(java.awt.Component c)
      Returns the (unscaled) line thickness used to compute the border insets.
      protected java.awt.Color getOutlineColor​(java.awt.Component c)
      Returns the outline color of the component border specified in client property FlatClientProperties.OUTLINE.
      java.util.Map<java.lang.String,​java.lang.Class<?>> getStyleableInfos()  
      java.lang.Object getStyleableValue​(java.lang.String key)  
      protected boolean isCellEditor​(java.awt.Component c)  
      protected boolean isEnabled​(java.awt.Component c)  
      protected boolean isFocused​(java.awt.Component c)  
      void paintBorder​(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)  
      • Methods inherited from class javax.swing.border.AbstractBorder

        getBaseline, getBaselineResizeBehavior, getBorderInsets, getInteriorRectangle, getInteriorRectangle, isBorderOpaque
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • focusWidth

        protected int focusWidth
      • innerFocusWidth

        protected float innerFocusWidth
      • innerOutlineWidth

        protected float innerOutlineWidth
      • borderWidth

        protected float borderWidth
        Since:
        2
      • focusColor

        protected java.awt.Color focusColor
      • borderColor

        protected java.awt.Color borderColor
      • disabledBorderColor

        protected java.awt.Color disabledBorderColor
      • focusedBorderColor

        protected java.awt.Color focusedBorderColor
      • errorBorderColor

        protected java.awt.Color errorBorderColor
      • errorFocusedBorderColor

        protected java.awt.Color errorFocusedBorderColor
      • warningBorderColor

        protected java.awt.Color warningBorderColor
      • warningFocusedBorderColor

        protected java.awt.Color warningFocusedBorderColor
      • customBorderColor

        protected java.awt.Color customBorderColor
      • outline

        protected java.lang.String outline
        Since:
        2
      • outlineColor

        protected java.awt.Color outlineColor
        Since:
        2
      • outlineFocusedColor

        protected java.awt.Color outlineFocusedColor
        Since:
        2
    • Constructor Detail

      • FlatBorder

        public FlatBorder()
    • Method Detail

      • paintBorder

        public void paintBorder​(java.awt.Component c,
                                java.awt.Graphics g,
                                int x,
                                int y,
                                int width,
                                int height)
        Specified by:
        paintBorder in interface javax.swing.border.Border
        Overrides:
        paintBorder in class javax.swing.border.AbstractBorder
      • getOutlineColor

        protected java.awt.Color getOutlineColor​(java.awt.Component c)
        Returns the outline color of the component border specified in client property FlatClientProperties.OUTLINE.
      • getFocusColor

        protected java.awt.Color getFocusColor​(java.awt.Component c)
      • getBorderColor

        protected java.awt.Paint getBorderColor​(java.awt.Component c)
      • isEnabled

        protected boolean isEnabled​(java.awt.Component c)
      • isFocused

        protected boolean isFocused​(java.awt.Component c)
      • isCellEditor

        protected boolean isCellEditor​(java.awt.Component c)
      • getBorderInsets

        public java.awt.Insets getBorderInsets​(java.awt.Component c,
                                               java.awt.Insets insets)
        Overrides:
        getBorderInsets in class javax.swing.plaf.basic.BasicBorders.MarginBorder
      • getFocusWidth

        protected int getFocusWidth​(java.awt.Component c)
        Returns the (unscaled) thickness of the outer focus border.
      • getInnerFocusWidth

        protected float getInnerFocusWidth​(java.awt.Component c)
        Returns the (unscaled) thickness of the inner focus border.
      • getLineWidth

        protected int getLineWidth​(java.awt.Component c)
        Returns the (unscaled) line thickness used to compute the border insets. This may be different to getBorderWidth(java.awt.Component).
      • getBorderWidth

        protected float getBorderWidth​(java.awt.Component c)
        Returns the (unscaled) line thickness used to paint the border. This may be different to getLineWidth(java.awt.Component).
      • getArc

        protected int getArc​(java.awt.Component c)
        Returns the (unscaled) arc diameter of the border corners.