ilog.views.gantt.graphic.renderer
Class IlvActivitySymbol
java.lang.Object
ilog.views.gantt.graphic.renderer.IlvActivityGraphicRenderer
ilog.views.gantt.graphic.renderer.IlvBasicActivitySymbol
ilog.views.gantt.graphic.renderer.IlvActivitySymbol
- All Implemented Interfaces:
- IlvActivityRenderer
public class IlvActivitySymbol
- extends IlvBasicActivitySymbol
The class 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.
| Methods inherited from class ilog.views.gantt.graphic.renderer.IlvActivityGraphicRenderer |
contains, draw, getBottomMargin, getGraphic, getPopupMenu, getPopupMenuName, 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 |
IlvActivitySymbol
public IlvActivitySymbol()
- Creates a symbol renderer. The default shape is a
pentagon pointing down.
getToolTipDateFormat
public DateFormat getToolTipDateFormat()
- Returns the format used to display the symbol's
alignment
time in the tooltip. The default is the default date/time style for the
default locale.
- Returns:
- The tooltip date format.
- Since:
- JViews 3.5
- See Also:
setToolTipDateFormat(java.text.DateFormat)
setToolTipDateFormat
public void setToolTipDateFormat(DateFormat format)
- Sets the format used to display the symbol's
alignment time in the tooltip.
- Parameters:
format - The tooltip date format.- Since:
- JViews 3.5
- See Also:
getToolTipDateFormat()
getToolTipText
public String getToolTipText(IlvActivityGraphic ag,
IlvPoint p,
IlvTransformer t)
- This method is called by an
activity graphic
to return tooltip text for itself. This implementation returns 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.
- Specified by:
getToolTipText in interface IlvActivityRenderer- Overrides:
getToolTipText in class IlvActivityGraphicRenderer
- Parameters:
ag - The activity graphic.p - The location of the mouse (in view coordinates).t - The transformer.
- Returns:
- The tooltip text.
- Since:
- JViews 3.5
Copyright © 1996-2007 ILOG S.A. All rights reserved. Documentation homepage.