public class IlvActivitySymbol extends IlvBasicActivitySymbol
IlvActivitySymbol
is an extension of
IlvBasicActivitySymbol
used to render the symbols
at the start and end of an activity, whose tooltip text is dynamically
updated from the activity.CIRCLE, DIAMOND, DOWN_PENTAGON, END, FILLED_CIRCLE, START, UP_PENTAGON
Constructor and Description |
---|
IlvActivitySymbol()
Creates a symbol renderer.
|
Modifier and Type | Method and Description |
---|---|
DateFormat |
getToolTipDateFormat()
Returns the format used to display the symbol's
alignment
time in the tooltip. |
String |
getToolTipText(IlvActivityGraphic ag,
IlvPoint p,
IlvTransformer t)
This method is called by an
activity graphic
to return tooltip text for itself. |
protected String |
getToolTipTextDescriptionPart(IlvActivityGraphic ag)
Returns the tooltip text for the specified activity graphic when the mouse
is over the drawing of this renderer.
|
void |
setToolTipDateFormat(DateFormat format)
Sets the format used to display the symbol's
alignment time in the tooltip. |
getAlignment, getBackground, getBounds, getForeground, getShape, setAlignment, setGraphic, setShape
contains, createSelection, draw, endProcessing, getBaseTextDirection, getBottomMargin, getDefinitionRect, getEndTime, getEndTimeProperty, getGraphic, getPopupMenu, getPopupMenuName, getStartTime, getStartTimeProperty, getToolTipText, getTopMargin, getVisibilityProperty, isPropertyEditable, isRedrawNeeded, isRedrawNeeded, isRelayoutNeeded, makeSelection, prepareGraphic, prepareGraphicVisibility, setBackground, setBaseTextDirection, setBottomMargin, setEndTimeProperty, setForeground, setPopupMenu, setPopupMenuName, setStartTimeProperty, setToolTipText, setTopMargin, setVisibilityProperty, startProcessing
public IlvActivitySymbol()
pentagon pointing down
.public DateFormat getToolTipDateFormat()
alignment
time in the tooltip. The default is the default date/time style for the
default locale.setToolTipDateFormat(java.text.DateFormat)
public void setToolTipDateFormat(DateFormat format)
alignment
time in the tooltip.format
- The tooltip date format.getToolTipDateFormat()
protected String getToolTipTextDescriptionPart(IlvActivityGraphic ag)
The default implementation of this method returns the name of the activity.
ag
- The activity graphic.getToolTipText(IlvActivityGraphic, IlvPoint, IlvTransformer)
public String getToolTipText(IlvActivityGraphic ag, IlvPoint p, IlvTransformer t)
activity graphic
to return tooltip text for itself. This implementation returns
a description part and a value (time) part. The description part is
taken from the method getToolTipTextDescriptionPart(ilog.views.gantt.graphic.IlvActivityGraphic)
. The value
part is the symbol's
alignment
time, formatted according to the
tooltip date format
.
If this previous method returns null
, then the
text set by calling IlvActivityGraphicRenderer.setToolTipText(java.lang.String)
will be used.getToolTipText
in interface IlvActivityRenderer
getToolTipText
in class IlvActivityGraphicRenderer
ag
- The activity graphic.p
- The location of the mouse (in view coordinates).t
- The transformer.getToolTipTextDescriptionPart(ilog.views.gantt.graphic.IlvActivityGraphic)
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.