Documentation of 'org.jdesktop.swingx.decorator.BorderHighlighter' Java class
BorderHighlighter
org.jdesktop.swingx.decorator

Class BorderHighlighter

  • All Implemented Interfaces:
    Highlighter


    public class BorderHighlighter
    extends AbstractHighlighter
    A Highlighter that applies a border the the renderer component. The resulting border can be configured to - ignore the component's border, set this highlighter's border - compound of this highlighter's border and component border, with this highlighter's border either inner or outer. The default setting is compound outer.
    • Constructor Detail

      • BorderHighlighter

        public BorderHighlighter()
        Instantiates a BorderHighlighter with no padding. The Highlighter is applied unconditionally.
      • BorderHighlighter

        public BorderHighlighter(HighlightPredicate predicate)
        Instantiates a BorderHighlighter with no padding, using the given predicate.
        Parameters:
        predicate - the HighlightPredicate to use
      • BorderHighlighter

        public BorderHighlighter(javax.swing.border.Border paddingBorder)
        Instantiates a BorderHighlighter with the given padding. The Highlighter is applied unconditionally.
        Parameters:
        paddingBorder - the border to apply as visual decoration.
      • BorderHighlighter

        public BorderHighlighter(HighlightPredicate predicate,
                                 javax.swing.border.Border paddingBorder)
        Instantiates a BorderHighlighter with the given padding, HighlightPredicate and default compound property. If the predicate is null, the highlighter will be applied unconditionally.
        Parameters:
        predicate - the HighlightPredicate to use
        paddingBorder - the border to apply as visual decoration.
      • BorderHighlighter

        public BorderHighlighter(HighlightPredicate predicate,
                                 javax.swing.border.Border paddingBorder,
                                 boolean compound)
        Instantiates a BorderHighlighter with the given padding, HighlightPredicate, compound property and default inner property. If the predicate is null, the highlighter will be applied unconditionally.
        Parameters:
        predicate - the HighlightPredicate to use
        paddingBorder - the border to apply as visual decoration.
        compound - the compound property.
      • BorderHighlighter

        public BorderHighlighter(HighlightPredicate predicate,
                                 javax.swing.border.Border paddingBorder,
                                 boolean compound,
                                 boolean inner)
        Instantiates a BorderHighlighter with the given padding, HighlightPredicate and compound property. If the predicate is null, the highlighter will be applied unconditionally.
        Parameters:
        predicate - the HighlightPredicate to use
        paddingBorder - the border to apply as visual decoration.
        compound - the compound property
        inner - the inner property
    • Method Detail

      • setCompound

        public void setCompound(boolean compound)
        Sets the compound property. If true, the highlight border will be compounded with the renderer's border, if any. Otherwise, the highlight border will replace the renderer's border.

        The default value is true;

        Parameters:
        compound - a boolean indicating whether the highlight border should be compounded with the component's border.
      • isCompound

        public boolean isCompound()
        Returns:
        the compound property.
        See Also:
        setCompound(boolean)
      • setInner

        public void setInner(boolean inner)
        Sets the inner property. If true/false and compounded is enabled the highlight border will be the inner/outer border of the compound. The default value is false;
        Parameters:
        inner - a boolean indicating whether the highlight border should be compounded as inner or outer border.
        See Also:
        isInner()
      • isInner

        public boolean isInner()
        Returns the inner property.
        Returns:
        the inner property.
        See Also:
        setInner(boolean)
      • setBorder

        public void setBorder(javax.swing.border.Border padding)
        Sets the Border used for highlighting.

        The default value is null.

        Parameters:
        padding - the Border to use
      • getBorder

        public javax.swing.border.Border getBorder()
        Returns the border used for highlighing.

        Returns:
        the border used to highlight.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.