|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.miginfocom.calendar.decorators.AbstractGridDecorator com.miginfocom.calendar.decorators.AbstractDateGridDecorator com.miginfocom.calendar.decorators.OddRowFillDecorator
public class OddRowFillDecorator
Paints even rows and/or columns with a paint.
Constructor Summary | |
---|---|
OddRowFillDecorator(DateGridContainer gridContainer,
int layerIndex,
java.awt.Paint rowPaint,
java.awt.Paint colPaint)
Constructor. |
Method Summary | |
---|---|
void |
doPaint(java.awt.Graphics2D g2,
java.awt.Rectangle bounds)
Paint what should be painted. |
java.awt.Paint |
getColumnPaint()
Property: The paint to paint for all odd columns. |
java.awt.Paint |
getRowPaint()
Property: The paint to paint for all odd rows. |
void |
gridChanged(java.beans.PropertyChangeEvent e)
Called when the grid changes. |
void |
setColumnPaint(java.awt.Paint p)
Property: The paint to paint for all odd columns. |
void |
setRowPaint(java.awt.Paint p)
Property: The paint to paint for all odd rows. |
Methods inherited from class com.miginfocom.calendar.decorators.AbstractDateGridDecorator |
---|
getDateGrid, getDateGridContainer |
Methods inherited from class com.miginfocom.calendar.decorators.AbstractGridDecorator |
---|
compareTo, dispose, getGrid, getGridContainer, getInvalidEnd, getInvalidStart, getLayerIndex, hasInvalidCells, invalidateCells, processEvent, setCellsValid, setLayerIndex |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OddRowFillDecorator(DateGridContainer gridContainer, int layerIndex, java.awt.Paint rowPaint, java.awt.Paint colPaint)
gridContainer
- The grid container to decorate. Not null
.layerIndex
- The order in which this decoration is painted. Should probably be pretty high since it
has to be shown above the grid lines.rowPaint
- The paint to paint for all odd rows. May be null
.colPaint
- The paint to paint for all odd columns. May be null
.Method Detail |
---|
public void doPaint(java.awt.Graphics2D g2, java.awt.Rectangle bounds)
Decorator
g2
- The graphics object to paint inbounds
- The bounds to stay within (a must). If width and/or height is 0 that dimension is not scaled to fit
and should be ignored.public java.awt.Paint getRowPaint()
null
.
public void setRowPaint(java.awt.Paint p)
null
.
p
- The new paint. May be null
.public java.awt.Paint getColumnPaint()
null
.
public void setColumnPaint(java.awt.Paint p)
null
.
p
- The new paint. May be null
.public void gridChanged(java.beans.PropertyChangeEvent e)
AbstractGridDecorator
gridChanged
in class AbstractGridDecorator
e
- The event.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |