public class NotificationGraphicRenderer
extends ilog.views.gantt.graphic.renderer.IlvActivityGraphicRenderer
Modifier and Type | Class and Description |
---|---|
static interface |
NotificationGraphicRenderer.Model
The Model is used to get the text and visibility from the IlvActivityGraphic
|
Constructor and Description |
---|
NotificationGraphicRenderer(int size,
java.awt.Color borderColor,
java.awt.Color backgroundColor,
java.awt.Color textColor,
int textSize,
NotificationGraphicRenderer.Model model)
Creates a new notification rendererer
|
Modifier and Type | Method and Description |
---|---|
void |
draw(java.awt.Graphics g,
ilog.views.gantt.graphic.IlvActivityGraphic ag,
ilog.views.IlvTransformer t) |
java.awt.Paint |
getGradientPaint(java.awt.Color bg) |
contains, createSelection, getBaseTextDirection, getBottomMargin, getBounds, getDefinitionRect, getEndTime, getEndTimeProperty, getGraphic, getPopupMenu, getPopupMenuName, getStartTime, getStartTimeProperty, getToolTipText, getToolTipText, getTopMargin, getVisibilityProperty, isPropertyEditable, isRedrawNeeded, isRedrawNeeded, isRelayoutNeeded, makeSelection, setBackground, setBaseTextDirection, setBottomMargin, setEndTimeProperty, setForeground, setGraphic, setPopupMenu, setPopupMenuName, setStartTimeProperty, setToolTipText, setTopMargin, setVisibilityProperty
public NotificationGraphicRenderer(int size, java.awt.Color borderColor, java.awt.Color backgroundColor, java.awt.Color textColor, int textSize, NotificationGraphicRenderer.Model model)
size
- Size of the circleborderColor
- circle border colorbackgroundColor
- circle background colortextColor
- circle text colortextSize
- text size in the circlemodel
- model to get the visibility and optional textpublic void draw(java.awt.Graphics g, ilog.views.gantt.graphic.IlvActivityGraphic ag, ilog.views.IlvTransformer t)
draw
in interface ilog.views.gantt.graphic.renderer.IlvActivityRenderer
draw
in class ilog.views.gantt.graphic.renderer.IlvActivityGraphicRenderer
public java.awt.Paint getGradientPaint(java.awt.Color bg)