Class CompositeOutlinePainter

    • Field Detail

      • displayName

        private java.lang.String displayName
        Display name of this outline painter.
    • Constructor Detail

      • CompositeOutlinePainter

        public CompositeOutlinePainter​(java.lang.String displayName,
                                       RadianceOutlinePainter outer,
                                       RadianceOutlinePainter inner)
        Creates a new composite outline painter.
        Parameters:
        displayName - Display name.
        outer - Delegate painter for painting the outer outlines.
        inner - Delegate painter for painting the inner outlines.
    • Method Detail

      • isPaintingInnerOutline

        public boolean isPaintingInnerOutline()
        Description copied from interface: RadianceOutlinePainter
        Returns boolean indication whether this outline painter is painting the inner outlines.
        Specified by:
        isPaintingInnerOutline in interface RadianceOutlinePainter
        Returns:
        true if this outline painter is painting the inner outlines, false otherwise.
      • paintOutline

        public void paintOutline​(java.awt.Graphics g,
                                 java.awt.Component c,
                                 float width,
                                 float height,
                                 java.awt.Shape outline,
                                 java.awt.Shape innerOutline,
                                 ContainerColorTokens colorTokens)
        Description copied from interface: RadianceOutlinePainter
        Paints the outline.
        Specified by:
        paintOutline in interface RadianceOutlinePainter
        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.
      • getDisplayName

        public java.lang.String getDisplayName()
        Description copied from interface: RadianceTrait
        Returns the display name of this trait. This method is part of officially supported API.
        Specified by:
        getDisplayName in interface RadianceTrait
        Returns:
        The display name of this trait.