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.StyleableObject, Serializable, Border, UIResource
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 Summary
FieldsFields 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) Applies the given value to this object.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, isCellEditor, isEnabled, isFocused, paintBorderMethods inherited from class AbstractBorder
getBaseline, getBaselineResizeBehavior, getBorderInsets, getInteriorRectangle, getInteriorRectangle, isBorderOpaqueMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface FlatStylingSupport.StyleableObject
getStyleableInfos, getStyleableValue
-
Field Details
-
arc
protected int arc
-
-
Constructor Details
-
FlatScrollPaneBorder
public FlatScrollPaneBorder()
-
-
Method Details
-
applyStyleProperty
Description copied from interface:FlatStylingSupport.StyleableObjectApplies the given value to this object.The default implementation invokes
FlatStylingSupport.applyToAnnotatedObject(Object, String, Object).- Parameters:
key- the name of the propertyvalue- the new value- Returns:
- the old value of the property
-
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.
-