|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.swingx.decorator.HighlighterFactory
public final class HighlighterFactory
A Factory which creates common Highlighters.
PENDING JW: really need the alternate striping? That's how the old AlternateRowHighlighter did it, but feels a bit wrong to have one stripe hardcoded to WHITE. Would prefer to remove.
Nested Class Summary | |
---|---|
static class |
HighlighterFactory.UIColorHighlighter
A ColorHighlighter with UI-dependent background. |
Field Summary | |
---|---|
static java.awt.Color |
BEIGE
predefined colors - from old alternateRow. |
static java.awt.Color |
CLASSIC_LINE_PRINTER
|
static java.awt.Color |
FLORAL_WHITE
|
static java.awt.Color |
GENERIC_GRAY
|
static java.awt.Color |
LEDGER
|
static java.awt.Color |
LINE_PRINTER
|
static java.awt.Color |
NOTEPAD
|
static java.awt.Color |
QUICKSILVER
|
Constructor Summary | |
---|---|
HighlighterFactory()
|
Method Summary | |
---|---|
static Highlighter |
createAlternateStriping()
Creates and returns a Highlighter which highlights with alternate background. |
static Highlighter |
createAlternateStriping(java.awt.Color baseBackground,
java.awt.Color alternateBackground)
Creates and returns a Highlighter which highlights with alternating background, starting with the base. |
static Highlighter |
createAlternateStriping(java.awt.Color baseBackground,
java.awt.Color alternateBackground,
int linesPerStripe)
Creates and returns a Highlighter which highlights with alternating background, starting with the base. |
static Highlighter |
createAlternateStriping(int rowsPerGroup)
Creates and returns a Highlighter which highlights with alternate background. the first Color.WHITE, the second with the color depending on LF. |
static Highlighter |
createSimpleStriping()
Creates and returns a Highlighter which highlights every second row background with a color depending on the LookAndFeel. |
static Highlighter |
createSimpleStriping(java.awt.Color stripeBackground)
Creates and returns a Highlighter which highlights every second row background with the given color. |
static Highlighter |
createSimpleStriping(java.awt.Color stripeBackground,
int rowsPerGroup)
Creates and returns a Highlighter which highlights every second row group background with the given color. |
static Highlighter |
createSimpleStriping(int rowsPerGroup)
Creates and returns a Highlighter which highlights every second row group background with a color depending on LF. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.awt.Color BEIGE
public static final java.awt.Color LINE_PRINTER
public static final java.awt.Color CLASSIC_LINE_PRINTER
public static final java.awt.Color FLORAL_WHITE
public static final java.awt.Color QUICKSILVER
public static final java.awt.Color GENERIC_GRAY
public static final java.awt.Color LEDGER
public static final java.awt.Color NOTEPAD
Constructor Detail |
---|
public HighlighterFactory()
Method Detail |
---|
public static Highlighter createSimpleStriping()
public static Highlighter createSimpleStriping(int rowsPerGroup)
rowsPerGroup
- the number of rows in a group
public static Highlighter createSimpleStriping(java.awt.Color stripeBackground)
stripeBackground
- the background color for the striping.
public static Highlighter createSimpleStriping(java.awt.Color stripeBackground, int rowsPerGroup)
stripeBackground
- the background color for the striping.rowsPerGroup
- the number of rows in a group
public static Highlighter createAlternateStriping()
public static Highlighter createAlternateStriping(int rowsPerGroup)
rowsPerGroup
- the number of rows in a group
public static Highlighter createAlternateStriping(java.awt.Color baseBackground, java.awt.Color alternateBackground)
baseBackground
- the background color for the even rows.alternateBackground
- background color for odd rows.
public static Highlighter createAlternateStriping(java.awt.Color baseBackground, java.awt.Color alternateBackground, int linesPerStripe)
baseBackground
- the background color for the even rows.alternateBackground
- background color for odd rows.linesPerStripe
- the number of rows in a group
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |