Interface RadianceOutlinePainter
- All Superinterfaces:
RadianceTrait
- All Known Implementing Classes:
CompositeOutlinePainter, FlatOutlinePainter, FlatVariantOutlinePainter, FractionBasedOutlinePainter, RadianceTabbedPaneUI.TabOutlinePainterDark, RadianceTabbedPaneUI.TabOutlinePainterLight
Outline painter interface for Radiance look and feel. This class is
part of officially supported API.
An outline painter is responsible for painting outlines (borders) of controls such as buttons, check boxes, tabs, scroll bars, etc.
An outline painter is responsible for painting outlines (borders) of controls such as buttons, check boxes, tabs, scroll bars, etc.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns boolean indication whether this outline painter is painting the inner outlines.voidpaintOutline(Graphics g, Component c, float width, float height, Shape outline, Shape innerOutline, ContainerColorTokens colorTokens) Paints the outline.Methods inherited from interface RadianceTrait
getDisplayName
-
Method Details
-
paintOutline
void paintOutline(Graphics g, Component c, float width, float height, Shape outline, Shape innerOutline, ContainerColorTokens colorTokens) Paints the outline.- Parameters:
g- Graphics.c- Component.width- Width of a UI component.height- Height of a UI component.outline- Primary outline to paint.innerOutline- Optional inner outline to paint. May be ignored if the specific implementation paints only the primary outline.colorTokens- The color tokens.
-
isPaintingInnerOutline
boolean isPaintingInnerOutline()Returns boolean indication whether this outline painter is painting the inner outlines.- Returns:
trueif this outline painter is painting the inner outlines,falseotherwise.
-