|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.jaret.util.ui.timebars.swing.renderer.DefaultGridRenderer
public class DefaultGridRenderer
Simple default implementation of a GridRenderer rendering the major and minor ticks using two different colors.
Field Summary | |
---|---|
protected de.jaret.util.ui.timebars.swing.renderer.DefaultGridRenderer.MyGridRenderer |
_component
component used for painting. |
protected java.awt.Color |
_majorGridColor
color used to paint the major grid. |
protected java.awt.Color |
_minorGridColor
color used to paint the minor grid. |
protected ITickProvider |
_tickProvider
external tick provider. |
Constructor Summary | |
---|---|
DefaultGridRenderer()
|
Method Summary | |
---|---|
java.awt.Color |
getMajorGridColor()
Retrieve the major grid color. |
java.awt.Color |
getMinorGridColor()
Retrieve the minor grid color. |
javax.swing.JComponent |
getRendererComponent(TimeBarViewer tbv)
Supply a configured JComponent for rendering the grid. |
void |
setMajorGridColor(java.awt.Color majorGridColor)
Set the major grid color. |
void |
setMinorGridColor(java.awt.Color minorGridColor)
Set the minor grid color. |
void |
setTickProvider(ITickProvider tickProvider)
Set a tick provider to determine the ticks to be drawn. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.awt.Color _majorGridColor
protected java.awt.Color _minorGridColor
protected de.jaret.util.ui.timebars.swing.renderer.DefaultGridRenderer.MyGridRenderer _component
protected ITickProvider _tickProvider
Constructor Detail |
---|
public DefaultGridRenderer()
Method Detail |
---|
public javax.swing.JComponent getRendererComponent(TimeBarViewer tbv)
getRendererComponent
in interface GridRenderer
tbv
- Timebarviewer for retrieving everything to paramatrize the compoennt
public void setTickProvider(ITickProvider tickProvider)
setTickProvider
in interface GridRenderer
tickProvider
- tick provider to be used or null
.public java.awt.Color getMajorGridColor()
public void setMajorGridColor(java.awt.Color majorGridColor)
majorGridColor
- the Color to use for the major gridpublic java.awt.Color getMinorGridColor()
public void setMinorGridColor(java.awt.Color minorGridColor)
minorGridColor
- the color to use for the minor grid
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |