public class BorderGraphicRenderer
extends ilog.views.gantt.graphic.renderer.IlvActivityGraphicRenderer
Modifier and Type | Class and Description |
---|---|
static interface |
BorderGraphicRenderer.Visibility
Controls the visibility of the renderer basedon the IlvActivityGraphic
|
Constructor and Description |
---|
BorderGraphicRenderer(java.awt.Color color,
float borderThickness,
boolean dashed,
BorderGraphicRenderer.Visibility visibility)
Creates a rectangular activity renderer with a linear gradient fill of the specified color.
|
Modifier and Type | Method and Description |
---|---|
void |
draw(java.awt.Graphics paramGraphics,
ilog.views.gantt.graphic.IlvActivityGraphic paramIlvActivityGraphic,
ilog.views.IlvTransformer paramIlvTransformer) |
float |
getBorderThickness()
Returns the border thickness for the stroke
|
ilog.views.IlvRect |
getBounds(ilog.views.gantt.graphic.IlvActivityGraphic paramIlvActivityGraphic,
ilog.views.IlvTransformer paramIlvTransformer) |
int |
getPadding() |
java.awt.BasicStroke |
getStroke()
Gets the Stroke used for this border
|
BorderGraphicRenderer.Visibility |
getVisibility()
Returns the Visibility condition for this renderer
|
void |
setBorderThickness(float borderThickness)
Sets a new border thickness for the stroke
|
void |
setPadding(int padding) |
void |
setStroke(java.awt.BasicStroke stroke)
Sets a custom stroke for this border (note dashed and thickness will be ignored if you set a custom stroke)
|
void |
setVisibility(BorderGraphicRenderer.Visibility visibility)
sets the visibility condition for this renderer
|
contains, createSelection, getBaseTextDirection, getBottomMargin, 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 BorderGraphicRenderer(java.awt.Color color, float borderThickness, boolean dashed, BorderGraphicRenderer.Visibility visibility)
color
- The new fill color.borderThickness
- public ilog.views.IlvRect getBounds(ilog.views.gantt.graphic.IlvActivityGraphic paramIlvActivityGraphic, ilog.views.IlvTransformer paramIlvTransformer)
getBounds
in interface ilog.views.gantt.graphic.renderer.IlvActivityRenderer
getBounds
in class ilog.views.gantt.graphic.renderer.IlvActivityGraphicRenderer
public void draw(java.awt.Graphics paramGraphics, ilog.views.gantt.graphic.IlvActivityGraphic paramIlvActivityGraphic, ilog.views.IlvTransformer paramIlvTransformer)
draw
in interface ilog.views.gantt.graphic.renderer.IlvActivityRenderer
draw
in class ilog.views.gantt.graphic.renderer.IlvActivityGraphicRenderer
public BorderGraphicRenderer.Visibility getVisibility()
public void setVisibility(BorderGraphicRenderer.Visibility visibility)
visibility
- public java.awt.BasicStroke getStroke()
public void setStroke(java.awt.BasicStroke stroke)
stroke
- public float getBorderThickness()
public void setBorderThickness(float borderThickness)
borderThickness
- public int getPadding()
public void setPadding(int padding)