Class FlatScrollPaneBorder

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

public class FlatScrollPaneBorder extends FlatBorder
Border for JScrollPane.
Since:
3.3
See Also:
UiDefault:
ScrollPane.arc int, ScrollPane.List.arc int, ScrollPane.Table.arc int, ScrollPane.TextComponent.arc int, ScrollPane.Tree.arc int
  • Field Details

    • arc

      protected int arc
  • Constructor Details

    • FlatScrollPaneBorder

      public FlatScrollPaneBorder()
  • Method Details

    • applyStyleProperty

      public Object applyStyleProperty(String key, Object value)
      Description copied from interface: FlatStylingSupport.StyleableObject
      Applies the given value to this object.

      The default implementation invokes FlatStylingSupport.applyToAnnotatedObject(Object, String, Object).

      Parameters:
      key - the name of the property
      value - the new value
      Returns:
      the old value of the property
    • 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.