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
Border for
JScrollPane
.- Since:
- 3.3
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
private boolean
private final int
private final int
private final int
private final int
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 -
Method Summary
Modifier and TypeMethodDescriptionapplyStyleProperty
(String key, Object value) protected int
Returns the (unscaled) arc diameter of the border.getBorderInsets
(Component c, Insets insets) int
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
-
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
- Specified by:
applyStyleProperty
in interfaceFlatStylingSupport.StyleableBorder
- Overrides:
applyStyleProperty
in classFlatBorder
-
getBorderInsets
- Overrides:
getBorderInsets
in classFlatBorder
-
getArc
Description copied from class:FlatBorder
Returns the (unscaled) arc diameter of the border.- Overrides:
getArc
in classFlatBorder
-
getLeftRightPadding
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.
-