public class IlvWeekendGrid extends IlvVerticalGanttGrid
IlvWeekendGrid
extends IlvVerticalGanttGrid
to
highlight the weekend days of the calendar.line
Constructor and Description |
---|
IlvWeekendGrid()
Creates a new vertical grid that highlights the weekends.
|
Modifier and Type | Method and Description |
---|---|
protected void |
beforeDrawWeekends(Graphics dst)
This method is invoked immediately before
drawWeekend(java.awt.Graphics, ilog.views.gantt.graphic.grid.IlvGanttGridContext, ilog.views.IlvRect) is invoked
and the weekends are drawn. |
void |
draw(Graphics dst,
IlvGanttGridContext context)
Renders the vertical grid.
|
protected void |
drawWeekend(Graphics dst,
IlvGanttGridContext context,
IlvRect weekendRect)
Renders one weekend rectangle.
|
Color |
getWeekendColor()
Returns the weekend fill color.
|
boolean |
isPrintWeekendsOpaque()
Returns whether transparent weekend colors
are forced to be printed as opaque.
|
boolean |
isWeekendDisplayed()
Returns whether weekends are displayed.
|
void |
setPrintWeekendsOpaque(boolean opaque)
Sets whether transparent weekend colors
are forced to be printed as opaque.
|
void |
setWeekendColor(Color color)
Sets the weekend fill color.
|
void |
setWeekendDisplayed(boolean flag)
Sets whether weekends are displayed.
|
createCalendar, getCalendar, getCalendar, getCalendar, getCalendar, getDrawingInterval, getGridShapes, setCalendar
getForeground, setForeground
public IlvWeekendGrid()
public Color getWeekendColor()
setWeekendColor(java.awt.Color)
public void setWeekendColor(Color color)
getWeekendColor()
public boolean isWeekendDisplayed()
true
.setWeekendDisplayed(boolean)
public void setWeekendDisplayed(boolean flag)
isWeekendDisplayed()
public boolean isPrintWeekendsOpaque()
false
.setPrintWeekendsOpaque(boolean)
public void setPrintWeekendsOpaque(boolean opaque)
opaque
- Indicates that transparent weekend colors should be printed
as opaque.isPrintWeekendsOpaque()
public void draw(Graphics dst, IlvGanttGridContext context)
draw
in interface IlvGanttGridRenderer
draw
in class IlvVerticalGanttGrid
dst
- The graphics context into which the grid is drawn.context
- The Gantt grid context in which the grid is being rendered.protected void beforeDrawWeekends(Graphics dst)
drawWeekend(java.awt.Graphics, ilog.views.gantt.graphic.grid.IlvGanttGridContext, ilog.views.IlvRect)
is invoked
and the weekends are drawn. This method initializes the graphics context.
The default implementation of this method sets the paint in the graphics
context.dst
- The graphics context into which the grid is drawn.protected void drawWeekend(Graphics dst, IlvGanttGridContext context, IlvRect weekendRect)
dst
- The graphics context into which the grid is drawn.
It has previously been initialized through the method
beforeDrawWeekends(Graphics)
.context
- The Gantt grid context.weekendRect
- The rectangular area to be filled.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.