|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.swingx.decorator.AbstractHighlighter
org.jdesktop.swingx.decorator.BorderHighlighter
public class BorderHighlighter
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 Summary | |
---|---|
BorderHighlighter()
Instantiates a BorderHighlighter with no padding. |
|
BorderHighlighter(javax.swing.border.Border paddingBorder)
Instantiates a BorderHighlighter with the given padding. |
|
BorderHighlighter(HighlightPredicate predicate)
Instantiates a BorderHighlighter with no padding, using the given predicate. |
|
BorderHighlighter(HighlightPredicate predicate,
javax.swing.border.Border paddingBorder)
Instantiates a BorderHighlighter with the given padding, HighlightPredicate and default compound property. |
|
BorderHighlighter(HighlightPredicate predicate,
javax.swing.border.Border paddingBorder,
boolean compound)
Instantiates a BorderHighlighter with the given padding, HighlightPredicate, compound property and default inner property. |
|
BorderHighlighter(HighlightPredicate predicate,
javax.swing.border.Border paddingBorder,
boolean compound,
boolean inner)
Instantiates a BorderHighlighter with the given padding, HighlightPredicate and compound property. |
Method Summary | |
---|---|
javax.swing.border.Border |
getBorder()
Returns the border used for highlighing. |
boolean |
isCompound()
|
boolean |
isInner()
Returns the inner property. |
void |
setBorder(javax.swing.border.Border padding)
Sets the Border used for highlighting. |
void |
setCompound(boolean compound)
Sets the compound property. |
void |
setInner(boolean inner)
Sets the inner property. |
Methods inherited from class org.jdesktop.swingx.decorator.AbstractHighlighter |
---|
addChangeListener, getChangeListeners, getHighlightPredicate, highlight, removeChangeListener, setHighlightPredicate |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BorderHighlighter()
public BorderHighlighter(HighlightPredicate predicate)
predicate
- the HighlightPredicate to usepublic BorderHighlighter(javax.swing.border.Border paddingBorder)
paddingBorder
- the border to apply as visual decoration.public BorderHighlighter(HighlightPredicate predicate, javax.swing.border.Border paddingBorder)
predicate
- the HighlightPredicate to usepaddingBorder
- the border to apply as visual decoration.public BorderHighlighter(HighlightPredicate predicate, javax.swing.border.Border paddingBorder, boolean compound)
predicate
- the HighlightPredicate to usepaddingBorder
- the border to apply as visual decoration.compound
- the compound property.public BorderHighlighter(HighlightPredicate predicate, javax.swing.border.Border paddingBorder, boolean compound, boolean inner)
predicate
- the HighlightPredicate to usepaddingBorder
- the border to apply as visual decoration.compound
- the compound propertyinner
- the inner propertyMethod Detail |
---|
public void setCompound(boolean compound)
The default value is true;
compound
- a boolean indicating whether the highlight border should be
compounded with the component's border.public boolean isCompound()
setCompound(boolean)
public void setInner(boolean inner)
inner
- a boolean indicating whether the highlight border should be
compounded as inner or outer border.isInner()
public boolean isInner()
setInner(boolean)
public void setBorder(javax.swing.border.Border padding)
The default value is null.
padding
- the Border to usepublic javax.swing.border.Border getBorder()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |