Class FlatScrollPaneBorder

All Implemented Interfaces:
FlatStylingSupport.StyleableBorder, Serializable, Border, UIResource

public class FlatScrollPaneBorder extends FlatBorder
Border for JScrollPane.
Since:
3.3
See Also:
  • Field Details

    • arc

      protected int arc
    • isArcStyled

      private boolean isArcStyled
    • listArc

      private final int listArc
    • tableArc

      private final int tableArc
    • textComponentArc

      private final int textComponentArc
    • treeArc

      private final int treeArc
  • Constructor Details

    • FlatScrollPaneBorder

      public FlatScrollPaneBorder()
  • Method Details

    • applyStyleProperty

      public Object applyStyleProperty(String key, Object value)
      Specified by:
      applyStyleProperty in interface FlatStylingSupport.StyleableBorder
      Overrides:
      applyStyleProperty in class FlatBorder
    • getBorderInsets

      public Insets getBorderInsets(Component c, Insets insets)
      Overrides:
      getBorderInsets in class FlatBorder
    • getArc

      protected int getArc(Component c)
      Description copied from class: FlatBorder
      Returns the (unscaled) arc diameter of the border corners.
      Overrides:
      getArc in class FlatBorder
    • getLeftRightPadding

      public int getLeftRightPadding(Component c)
      Returns the scaled left/right padding used when arc is larger than zero.

      This is the distance from the inside of the left border to the left side of the view component. On the right side, this is the distance between the right side of the view component and the vertical scrollbar. Or the inside of the right border if the scrollbar is hidden.