|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sygem.swing.renderers.VerticalBackgroundRenderer
A simple background renderer - creates a smooth vertical gradient between 2 colours.
Constructor Summary | |
VerticalBackgroundRenderer(java.awt.Color color1,
java.awt.Color color2)
Constructor - sets up the two colors used in the gradient |
Method Summary | |
void |
renderBackground(java.awt.Component c,
java.awt.Graphics2D g)
Renders the smooth gradient to the passed in graphics context. |
void |
setColor1(java.awt.Color color1)
Set the first color used in the gradient |
void |
setColor2(java.awt.Color color2)
Set the second color used in the gradient |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public VerticalBackgroundRenderer(java.awt.Color color1, java.awt.Color color2)
color1
- Colorcolor2
- ColorMethod Detail |
public void renderBackground(java.awt.Component c, java.awt.Graphics2D g)
renderBackground
in interface BackgroundRenderer
c
- The Category that is being renderedg
- The Graphics2D context to draw topublic void setColor1(java.awt.Color color1)
color1
- Colorpublic void setColor2(java.awt.Color color2)
color2
- Color
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |