|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.gantt.graphic.renderer.IlvActivityGraphicRenderer
ilog.views.gantt.graphic.renderer.IlvBasicActivityBar
public class IlvBasicActivityBar
The class IlvBasicActivityBar draws a rectangle to render
the duration of a given activity in a Gantt sheet. It also renders an
optional text label inside the rectangle. The text label and tooltip
properties of this renderer are not computed dynamically from the activity
that is being rendered. Therefore, this renderer is primarily intended to be
used when you
apply CSS style
sheets
to the Gantt or Schedule chart. In this case, the CSS styling mechanism will
handle dynamic updates to the renderer based upon its interpretation of the
style sheets and the data model. If you are not using CSS styling and you
want the text label of the renderer to be dynamically computed from a
property of the activity, you should use the IlvActivityBar renderer
instead.
An IlvBasicActivityBar as a shadow rectangle.
An IlvBasicActivityBar as a relief rectangle.
| Field Summary | |
|---|---|
static int |
RELIEF
The activity will be rendered as a relief rectangle. |
static int |
SHADOW
The activity will be rendered as a shadow rectangle. |
| Constructor Summary | |
|---|---|
IlvBasicActivityBar()
Creates an IlvBasicActivityBar renderer with the default
SHADOW style. |
|
| Method Summary | |
|---|---|
Color |
getBackground()
Returns the renderer background color. |
Font |
getFont()
Returns the renderer font. |
Color |
getForeground()
Returns the renderer foreground color. |
String |
getLabel()
Returns the label being rendered. |
int |
getStyle()
Returns the style of the renderer. |
int |
getThickness()
Returns the thickness of the renderer shadow or relief. |
void |
setFont(Font font)
Sets the renderer font. |
void |
setGraphic(IlvGraphic graphic)
Sets the IlvGraphic used to render activities. |
void |
setLabel(String label)
Sets the label to be rendered. |
void |
setStyle(int style)
Sets the rectangle renderer style. |
void |
setThickness(int thickness)
Sets the thickness of the renderer shadow or relief. |
| Methods inherited from class ilog.views.gantt.graphic.renderer.IlvActivityGraphicRenderer |
|---|
contains, draw, getBottomMargin, getBounds, getGraphic, getPopupMenu, getPopupMenuName, getToolTipText, getToolTipText, getTopMargin, isRedrawNeeded, makeSelection, prepareGraphic, setBackground, setBottomMargin, setForeground, setPopupMenu, setPopupMenuName, setToolTipText, setTopMargin |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int SHADOW
shadow rectangle.
setStyle(int),
Constant Field Valuespublic static final int RELIEF
relief rectangle.
setStyle(int),
Constant Field Values| Constructor Detail |
|---|
public IlvBasicActivityBar()
IlvBasicActivityBar renderer with the default
SHADOW style.
| Method Detail |
|---|
public int getStyle()
SHADOW or RELIEF.
setStyle(int)public void setStyle(int style)
SHADOW or RELIEF.
getStyle()public Color getForeground()
IlvActivityGraphicRenderer.setForeground(java.awt.Color)public Color getBackground()
IlvActivityGraphicRenderer.setBackground(java.awt.Color)public int getThickness()
setThickness(int)public void setThickness(int thickness)
getThickness()public Font getFont()
setFont(java.awt.Font)public void setFont(Font font)
getFont()public String getLabel()
setLabel(java.lang.String)public void setLabel(String label)
getLabel()public void setGraphic(IlvGraphic graphic)
IlvGraphic used to render activities. Only
IlvShadowLabels and IlvReliefLabels are supported by
this class. Any other type of graphic will throw an
IllegalArgumentException.
setGraphic in class IlvActivityGraphicRenderergraphic - The new graphic.IlvActivityGraphicRenderer.getGraphic()
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||