public class IlvBasicActivityBar extends IlvActivityGraphicRenderer
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.
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
IlvBasicActivityBar()
Creates an
IlvBasicActivityBar renderer with the default
SHADOW style. |
Modifier and Type | Method and Description |
---|---|
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.
|
boolean |
isAntialiasing()
Returns
true if the anti-aliasing mode of the text label is on. |
void |
setAntialiasing(boolean set)
Changes the anti-aliasing mode of the text label.
|
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.
|
contains, createSelection, draw, endProcessing, getBaseTextDirection, getBottomMargin, getBounds, getDefinitionRect, getEndTime, getEndTimeProperty, getGraphic, getPopupMenu, getPopupMenuName, getStartTime, getStartTimeProperty, getToolTipText, getToolTipText, getTopMargin, getVisibilityProperty, isPropertyEditable, isRedrawNeeded, isRedrawNeeded, isRelayoutNeeded, makeSelection, prepareGraphic, prepareGraphicVisibility, setBackground, setBaseTextDirection, setBottomMargin, setEndTimeProperty, setForeground, setPopupMenu, setPopupMenuName, setStartTimeProperty, setToolTipText, setTopMargin, setVisibilityProperty, startProcessing
public static final int SHADOW
shadow rectangle
.setStyle(int)
,
Constant Field Valuespublic static final int RELIEF
relief rectangle
.setStyle(int)
,
Constant Field Valuespublic IlvBasicActivityBar()
IlvBasicActivityBar
renderer with the default
SHADOW
style.public int getStyle()
setStyle(int)
public void setStyle(int style)
SHADOW
or RELIEF
.getStyle()
public Color getForeground()
public Color getBackground()
public int getThickness()
setThickness(int)
public void setThickness(int thickness)
getThickness()
public Font getFont()
setFont(java.awt.Font)
public final boolean isAntialiasing()
true
if the anti-aliasing mode of the text label is on. The
default value is false
setAntialiasing(boolean)
public void setAntialiasing(boolean set)
set
- true
to enable anti-aliasing of the text label, or
false
to disable it.isAntialiasing()
public String getLabel()
setLabel(java.lang.String)
public void setLabel(String label)
getLabel()
public void setGraphic(IlvGraphic graphic)
IlvGraphic
used to render activities. Only
IlvShadowLabel
s and IlvReliefLabel
s are supported by
this class. Any other type of graphic will throw an
IllegalArgumentException
.setGraphic
in class IlvActivityGraphicRenderer
graphic
- The new graphic.IlvActivityGraphicRenderer.getGraphic()
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.