|
ehsbe CommonsTM Version 1.1.0rc3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ehsbe.commons.gui.util.BannerPainter<T>
T - inrelevantpublic class BannerPainter<T>
Paints banner at the given Graphics2D context.
| Constructor Summary | |
|---|---|
BannerPainter()
Create a default painter. |
|
BannerPainter(String banner)
Create a default painter. |
|
BannerPainter(String banner,
Font font,
Color foreground,
Color background,
Color backgroundLight)
Create a customized painter. |
|
| Method Summary | |
|---|---|
Color |
getBackground()
Get the (dark) background color. |
Color |
getBackgroundLight()
Get the lighter background color. |
String |
getBanner()
Get the banner text to draw. |
Font |
getFont()
Get the font used to draw the banner. |
Color |
getForeground()
Get the foreground used to draw the banner text. |
void |
paint(Graphics2D g2,
T panel,
int width,
int height)
|
void |
setBackground(Color background)
Set the (dark) background color. |
void |
setBackgroundLight(Color backgroundLight)
Set the lighter background color. |
void |
setBanner(String banner)
Set the banner text to draw. |
void |
setFont(Font font)
Set the font used to draw the banner. |
void |
setForeground(Color foreground)
Set the foreground used to draw the banner text. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BannerPainter()
public BannerPainter(String banner)
banner - see setBanner(String)
public BannerPainter(String banner,
Font font,
Color foreground,
Color background,
Color backgroundLight)
banner - see setBanner(String)font - see setFont(Font)foreground - see setForeground(Color)background - see setBackground(Color)backgroundLight - see setBackgroundLight(Color)| Method Detail |
|---|
public Font getFont()
public void setFont(Font font)
font - if null a default font will be used.public String getBanner()
null if not set, the text otherwise.public void setBanner(String banner)
banner - if null no banner gets drawn, the text otherwise.public Color getForeground()
public void setForeground(Color foreground)
foreground - the banner text color to use. If null the
default color will be used.public Color getBackground()
public void setBackground(Color background)
background - the background color. If null the default
color will be used.public Color getBackgroundLight()
public void setBackgroundLight(Color backgroundLight)
backgroundLight - the lighter background color. If null
the default color will be used.
public void paint(Graphics2D g2,
T panel,
int width,
int height)
paint in interface org.jdesktop.swingx.painter.Painter<T>
|
ehsbe CommonsTM Version 1.1.0rc3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||