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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprivate booleanprivate final intprivate final intprivate final intprivate final intFields inherited from class FlatBorder
borderColor, borderWidth, customBorderColor, disabledBorderColor, errorBorderColor, errorFocusedBorderColor, focusColor, focusedBorderColor, focusWidth, innerFocusWidth, innerOutlineWidth, outline, outlineColor, outlineFocusedColor, successBorderColor, successFocusedBorderColor, warningBorderColor, warningFocusedBorderColor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyStyleProperty(String key, Object value) protected intReturns the (unscaled) arc diameter of the border corners.getBorderInsets(Component c, Insets insets) intReturns the scaled left/right padding used when arc is larger than zero.Methods inherited from class FlatBorder
getBorderColor, getBorderWidth, getFocusColor, getFocusWidth, getInnerFocusWidth, getLineWidth, getOutlineColor, getStyleableInfos, getStyleableValue, isCellEditor, isEnabled, isFocused, paintBorderMethods inherited from class 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:
applyStylePropertyin interfaceFlatStylingSupport.StyleableBorder- Overrides:
applyStylePropertyin classFlatBorder
-
getBorderInsets
- Overrides:
getBorderInsetsin classFlatBorder
-
getArc
Description copied from class:FlatBorderReturns the (unscaled) arc diameter of the border corners.- Overrides:
getArcin 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.
-