Class FlatTabbedPaneCloseIcon
java.lang.Object
com.formdev.flatlaf.icons.FlatAbstractIcon
com.formdev.flatlaf.icons.FlatTabbedPaneCloseIcon
- All Implemented Interfaces:
FlatStylingSupport.StyleableObject, Icon, UIResource
public class FlatTabbedPaneCloseIcon
extends FlatAbstractIcon
implements FlatStylingSupport.StyleableObject
"close" icon for closable tabs in
JTabbedPane.- UiDefault:
- TabbedPane.closeSize Dimension, TabbedPane.closeArc int, TabbedPane.closeCrossPlainSize float, TabbedPane.closeCrossFilledSize float, TabbedPane.closeCrossLineWidth float, TabbedPane.closeBackground Color, TabbedPane.closeForeground Color, TabbedPane.closeHoverBackground Color, TabbedPane.closeHoverForeground Color, TabbedPane.closePressedBackground Color, TabbedPane.closePressedForeground Color
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected Colorprotected floatprotected floatprotected floatprotected Colorprotected Colorprotected Colorprotected Colorprotected Colorprotected DimensionFields inherited from class FlatAbstractIcon
color, height, width -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidpaintIcon(Component c, Graphics2D g) Paints icon.Methods inherited from class FlatAbstractIcon
getIconHeight, getIconWidth, getScale, paintBackground, paintIcon, scale, setScaleMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface FlatStylingSupport.StyleableObject
applyStyleProperty, getStyleableInfos, getStyleableValue
-
Field Details
-
closeSize
-
closeArc
protected int closeArc -
closeCrossPlainSize
protected float closeCrossPlainSize -
closeCrossFilledSize
protected float closeCrossFilledSize -
closeCrossLineWidth
protected float closeCrossLineWidth -
closeBackground
-
closeForeground
-
closeHoverBackground
-
closeHoverForeground
-
closePressedBackground
-
closePressedForeground
-
-
Constructor Details
-
FlatTabbedPaneCloseIcon
public FlatTabbedPaneCloseIcon()
-
-
Method Details
-
paintIcon
Description copied from class:FlatAbstractIconPaints icon.The graphics context is translated and scaled. This means that icon x,y coordinates are
0,0and it is not necessary to scale coordinates within this method.The bounds to be used for icon painting are: 0, 0,
FlatAbstractIcon.width,FlatAbstractIcon.height.- Specified by:
paintIconin classFlatAbstractIcon
-