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
,java.io.Serializable
,javax.swing.border.Border
,javax.swing.plaf.UIResource
public class FlatScrollPaneBorder extends FlatBorder
Border forJScrollPane
.- Since:
- 3.3
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected int
arc
private boolean
isArcStyled
private int
listArc
private int
tableArc
private int
textComponentArc
private int
treeArc
-
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 java.lang.Object
applyStyleProperty(java.lang.String key, java.lang.Object value)
protected int
getArc(java.awt.Component c)
Returns the (unscaled) arc diameter of the border corners.java.awt.Insets
getBorderInsets(java.awt.Component c, java.awt.Insets insets)
int
getLeftRightPadding(java.awt.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
-
-
-
-
Method Detail
-
applyStyleProperty
public java.lang.Object applyStyleProperty(java.lang.String key, java.lang.Object value)
- Specified by:
applyStyleProperty
in interfaceFlatStylingSupport.StyleableBorder
- Overrides:
applyStyleProperty
in classFlatBorder
-
getBorderInsets
public java.awt.Insets getBorderInsets(java.awt.Component c, java.awt.Insets insets)
- Overrides:
getBorderInsets
in classFlatBorder
-
getArc
protected int getArc(java.awt.Component c)
Description copied from class:FlatBorder
Returns the (unscaled) arc diameter of the border corners.- Overrides:
getArc
in classFlatBorder
-
getLeftRightPadding
public int getLeftRightPadding(java.awt.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.
-
-