Class FlatHelpButtonIcon
java.lang.Object
com.formdev.flatlaf.icons.FlatAbstractIcon
com.formdev.flatlaf.icons.FlatHelpButtonIcon
- All Implemented Interfaces:
FlatStylingSupport.StyleableObject, Icon, UIResource
public class FlatHelpButtonIcon
extends FlatAbstractIcon
implements FlatStylingSupport.StyleableObject
Help button icon for
JButton.- UiDefault:
- Component.focusWidth int, Component.focusColor Color, HelpButton.innerFocusWidth int or float optional; defaults to Component.innerFocusWidth, HelpButton.borderWidth int optional; default is 1, HelpButton.borderColor Color, HelpButton.disabledBorderColor Color, HelpButton.focusedBorderColor Color, HelpButton.hoverBorderColor Color optional, HelpButton.background Color, HelpButton.disabledBackground Color, HelpButton.focusedBackground Color optional, HelpButton.hoverBackground Color optional, HelpButton.pressedBackground Color optional, HelpButton.questionMarkColor Color, HelpButton.disabledQuestionMarkColor Color
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Colorprotected Colorprotected intprotected Colorprotected Colorprotected Colorprotected Colorprotected Colorprotected Colorprotected intprotected Colorprotected Colorprotected floatprotected Colorprotected ColorFields inherited from class FlatAbstractIcon
color, height, width -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the scaled icon height.intReturns the scaled icon width.protected voidpaintIcon(Component c, Graphics2D g2) Paints icon.Methods inherited from class FlatAbstractIcon
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
-
focusWidth
protected int focusWidth -
focusColor
-
innerFocusWidth
protected float innerFocusWidth -
borderWidth
protected int borderWidth -
borderColor
-
disabledBorderColor
-
focusedBorderColor
-
hoverBorderColor
-
background
-
disabledBackground
-
focusedBackground
-
hoverBackground
-
pressedBackground
-
questionMarkColor
-
disabledQuestionMarkColor
-
-
Constructor Details
-
FlatHelpButtonIcon
public FlatHelpButtonIcon()
-
-
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
-
getIconWidth
public int getIconWidth()Description copied from class:FlatAbstractIconReturns the scaled icon width.- Specified by:
getIconWidthin interfaceIcon- Overrides:
getIconWidthin classFlatAbstractIcon
-
getIconHeight
public int getIconHeight()Description copied from class:FlatAbstractIconReturns the scaled icon height.- Specified by:
getIconHeightin interfaceIcon- Overrides:
getIconHeightin classFlatAbstractIcon
-