public interface IlvActivityCalendarRenderer
IlvActivityCalendarRenderer
defines the graphic presentation of an
activity bar within one of the calendar views. Within an IlvMonthPanel
, the
renderer is responsible for drawing a single row within the month grid. The month
panel will call the renderer's draw(java.awt.Graphics, ilog.views.gantt.IlvActivity, boolean, java.awt.Rectangle, java.awt.ComponentOrientation, int, int)
method once for each row that the
activity spans within the panel.Modifier and Type | Field and Description |
---|---|
static int |
END_STYLE_CLOSED
Indicates that the activity terminates on a day boundary and that the end of
the bar should be drawn in a manner to indicate that it is "closed".
|
static int |
END_STYLE_INTRA_DAY
Indicates that the activity terminates within the bounds of a day.
|
static int |
END_STYLE_OPEN
Indicates that the activity extends beyond the bar end point and that the end of
the bar should be drawn in a manner to indicate that it is "open".
|
Modifier and Type | Method and Description |
---|---|
void |
draw(Graphics g,
IlvActivity activity,
boolean isSelected,
Rectangle rect,
ComponentOrientation orientation,
int startStyle,
int endStyle)
This method is called by an
IlvMonthPanel to render an activity bar
on a single row within the month grid. |
String |
getToolTipText(IlvActivity activity,
IlvGanttModel model,
Calendar calendar,
MouseEvent event)
This method is called by an
IlvMonthPanel to return tooltip text for
a displayed activity. |
static final int END_STYLE_OPEN
static final int END_STYLE_CLOSED
static final int END_STYLE_INTRA_DAY
void draw(Graphics g, IlvActivity activity, boolean isSelected, Rectangle rect, ComponentOrientation orientation, int startStyle, int endStyle)
IlvMonthPanel
to render an activity bar
on a single row within the month grid.g
- The graphics context in which to paint.activity
- The activity to be rendered.isSelected
- Indicates whether the activity is selected.rect
- The bounding box of the activity bar.orientation
- The component orientation of the month panel that is asking
the activity to be rendered.startStyle
- Indicates the style in which the start of the bar should be
drawn. The value will be one of END_STYLE_OPEN
, END_STYLE_CLOSED
,
or END_STYLE_INTRA_DAY
.endStyle
- Indicates the style in which the end of the bar should be
drawn. The value will be one of END_STYLE_OPEN
, END_STYLE_CLOSED
,
or END_STYLE_INTRA_DAY
.String getToolTipText(IlvActivity activity, IlvGanttModel model, Calendar calendar, MouseEvent event)
IlvMonthPanel
to return tooltip text for
a displayed activity. This method can return null
to disable the
tooltip for the activity.activity
- The activity.model
- The data model that contains the activity.calendar
- The date that corresponds to the mouse position.event
- The mouse event that caused the ToolTipManager
to
show the tooltip.null
.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.