Package com.formdev.flatlaf.ui
Class FlatScrollPaneBorder
- java.lang.Object
-
- javax.swing.border.AbstractBorder
-
- javax.swing.plaf.basic.BasicBorders.MarginBorder
-
- com.formdev.flatlaf.ui.FlatBorder
-
- com.formdev.flatlaf.ui.FlatScrollPaneBorder
-
- All Implemented Interfaces:
FlatStylingSupport.StyleableBorder,Serializable,Border,UIResource
public class FlatScrollPaneBorder extends FlatBorder
Border forJScrollPane.- Since:
- 3.3
- See Also:
- Serialized Form
- UiDefault:
- ScrollPane.arc int, ScrollPane.List.arc int, ScrollPane.Table.arc int, ScrollPane.TextComponent.arc int, ScrollPane.Tree.arc int
-
-
Field Summary
Fields Modifier and Type Field Description protected intarc-
Fields inherited from class com.formdev.flatlaf.ui.FlatBorder
borderColor, borderWidth, customBorderColor, disabledBorderColor, errorBorderColor, errorFocusedBorderColor, focusColor, focusedBorderColor, focusWidth, innerFocusWidth, innerOutlineWidth, outline, outlineColor, outlineFocusedColor, warningBorderColor, warningFocusedBorderColor
-
-
Constructor Summary
Constructors Constructor Description FlatScrollPaneBorder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectapplyStyleProperty(String key, Object value)protected intgetArc(Component c)Returns the (unscaled) arc diameter of the border.InsetsgetBorderInsets(Component c, Insets insets)intgetLeftRightPadding(Component c)Returns the scaled left/right padding used when arc is larger than zero.-
Methods inherited from class com.formdev.flatlaf.ui.FlatBorder
getBorderColor, getBorderWidth, getFocusColor, getFocusWidth, getInnerFocusWidth, getLineWidth, getOutlineColor, getStyleableInfos, getStyleableValue, isCellEditor, isEnabled, isFocused, paintBorder
-
Methods inherited from class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getBorderInsets, getInteriorRectangle, getInteriorRectangle, isBorderOpaque
-
-
-
-
Method Detail
-
applyStyleProperty
public Object applyStyleProperty(String key, Object value)
- Specified by:
applyStylePropertyin interfaceFlatStylingSupport.StyleableBorder- Overrides:
applyStylePropertyin classFlatBorder
-
getBorderInsets
public Insets getBorderInsets(Component c, Insets insets)
- Overrides:
getBorderInsetsin classFlatBorder
-
getArc
protected int getArc(Component c)
Description copied from class:FlatBorderReturns the (unscaled) arc diameter of the border.- Overrides:
getArcin classFlatBorder
-
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.
-
-