Interface RadianceOutlinePainter

All Superinterfaces:
RadianceTrait
All Known Implementing Classes:
CompositeOutlinePainter, FlatOutlinePainter, FlatVariantOutlinePainter, FractionBasedOutlinePainter, RadianceTabbedPaneUI.TabOutlinePainterDark, RadianceTabbedPaneUI.TabOutlinePainterLight

public interface RadianceOutlinePainter extends RadianceTrait
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.
  • 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:
      true if this outline painter is painting the inner outlines, false otherwise.