be.ac.ua.broker.output.gui
Class ToolTipGenerator
java.lang.Object
org.jfree.chart.labels.AbstractCategoryItemLabelGenerator
org.jfree.chart.labels.StandardCategoryToolTipGenerator
org.jfree.chart.labels.IntervalCategoryToolTipGenerator
be.ac.ua.broker.output.gui.ToolTipGenerator
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, org.jfree.chart.labels.CategoryToolTipGenerator, org.jfree.util.PublicCloneable
public class ToolTipGenerator
- extends org.jfree.chart.labels.IntervalCategoryToolTipGenerator
This class is used as tooltipGenerator, it creates a tooltip text that
contains all the relevant subTask and task specifications that are valuable
for the use, but also the price that corresponds with the associated task
hour in the schedule. The tooltip text is generated only when the user hovers
over the part of the Gantt-like chart associated with this task, previously
they were generated when the chart was generated but this made the GUI very
slow.
- Author:
- Vermeersch Kurt (based on GanttRenderer.java by JFreeChart)
- See Also:
- Serialized Form
Fields inherited from class org.jfree.chart.labels.IntervalCategoryToolTipGenerator |
DEFAULT_TOOL_TIP_FORMAT_STRING |
Method Summary |
java.lang.String |
generateToolTip(SubTask subtask)
Generate a toolTip text for the given subTask. |
Methods inherited from class org.jfree.chart.labels.IntervalCategoryToolTipGenerator |
createItemArray, equals |
Methods inherited from class org.jfree.chart.labels.StandardCategoryToolTipGenerator |
generateToolTip |
Methods inherited from class org.jfree.chart.labels.AbstractCategoryItemLabelGenerator |
clone, generateColumnLabel, generateLabelString, generateRowLabel, getDateFormat, getLabelFormat, getNumberFormat, hashCode |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
ToolTipGenerator
public ToolTipGenerator()
- Constructor for ToolTipGenerator
generateToolTip
public java.lang.String generateToolTip(SubTask subtask)
- Generate a toolTip text for the given subTask.
- Parameters:
subtask
- the subTask to generate a toolTip text for
- Returns:
- the toolTip text to use for the provided subTask.