org.jdesktop.swingx.decorator
Class FontHighlighter
- java.lang.Object
-
- org.jdesktop.swingx.decorator.AbstractHighlighter
-
- org.jdesktop.swingx.decorator.FontHighlighter
-
- All Implemented Interfaces:
- Highlighter
public class FontHighlighter extends AbstractHighlighter
A Highlighter which sets the Font of the component.
-
-
Constructor Summary
Constructors Constructor and Description FontHighlighter()Instantiates a FontHighlighter with null Font.FontHighlighter(java.awt.Font font)Instantiates a FontHighlighter with the given Font.FontHighlighter(HighlightPredicate predicate)Instantiates a FontHighlighter with the given HighlightPredicate and null Font.FontHighlighter(HighlightPredicate predicate, java.awt.Font font)Instantiates a FontHighlighter with the given Font and HighlightPredicate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.awt.FontgetFont()Returns the Font used for decoration.voidsetFont(java.awt.Font font)Sets the Font used for decoration.-
Methods inherited from class org.jdesktop.swingx.decorator.AbstractHighlighter
addChangeListener, getChangeListeners, getHighlightPredicate, highlight, removeChangeListener, setHighlightPredicate
-
-
-
-
Constructor Detail
-
FontHighlighter
public FontHighlighter()
Instantiates a FontHighlighter with null Font. The Highlighter is applied always.
-
FontHighlighter
public FontHighlighter(java.awt.Font font)
Instantiates a FontHighlighter with the given Font. The Highlighter is applied always.- Parameters:
font- the Font to apply
-
FontHighlighter
public FontHighlighter(HighlightPredicate predicate)
Instantiates a FontHighlighter with the given HighlightPredicate and null Font.- Parameters:
predicate- the HighlightPredicate to use, may be null to default to ALWAYS.
-
FontHighlighter
public FontHighlighter(HighlightPredicate predicate, java.awt.Font font)
Instantiates a FontHighlighter with the given Font and HighlightPredicate.- Parameters:
predicate- the HighlightPredicate to use, may be null to default to ALWAYS.font- the Font to apply, may be null
-
-
Method Detail
-
getFont
public java.awt.Font getFont()
Returns the Font used for decoration.- Returns:
- the Font used for decoration
- See Also:
setFont(Font)
-
setFont
public void setFont(java.awt.Font font)
Sets the Font used for decoration. May be null to not decorate.- Parameters:
font- the Font used for decoration, may be null to not decorate.- See Also:
getFont()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG