Class TimeChartAnalysisProvider
java.lang.Object
org.eclipse.tracecompass.tmf.ui.widgets.timegraph.TimeGraphPresentationProvider
org.eclipse.tracecompass.tmf.ui.views.timechart.TimeChartAnalysisProvider
- All Implemented Interfaces:
IColorSettingsListener,ITimeGraphPresentationProvider
public class TimeChartAnalysisProvider
extends TimeGraphPresentationProvider
implements IColorSettingsListener
Provider for a time chart analysis view
- Version:
- 1.0
- Author:
- Patrick Tasse
-
Field Summary
Fields inherited from interface org.eclipse.tracecompass.tmf.ui.widgets.timegraph.ITimeGraphPresentationProvider
INVISIBLE, TRANSPARENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcolorSettingsChanged(ColorSetting[] settings) Notify the listener that the color settings have changed.getEventStyle(ITimeEvent event) Get the style map of a given ITimeEventReturns table of states with state name to state color relationship.intgetStateTableIndex(ITimeEvent event) Returns the index in the state table corresponding to this time event.voidpostDrawEvent(ITimeEvent event, org.eclipse.swt.graphics.Rectangle rect, org.eclipse.swt.graphics.GC gc) Called after drawing an eventMethods inherited from class org.eclipse.tracecompass.tmf.ui.widgets.timegraph.TimeGraphPresentationProvider
addColorListener, displayTimesInTooltip, getDrawingHelper, getEventHoverToolTipInfo, getEventHoverToolTipInfo, getEventName, getItemHeight, getItemImage, getStateTypeName, getStateTypeName, postDrawControl, postDrawEntry, refresh, removeColorListener, setDrawingHelperMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.tracecompass.tmf.ui.widgets.timegraph.ITimeGraphPresentationProvider
getFilterInput, getLinkTypeName, getPreferenceKey, getSpecificEventStyle
-
Constructor Details
-
TimeChartAnalysisProvider
public TimeChartAnalysisProvider()Constructor
-
-
Method Details
-
getStateTable
Description copied from interface:ITimeGraphPresentationProviderReturns table of states with state name to state color relationship.- Specified by:
getStateTablein interfaceITimeGraphPresentationProvider- Overrides:
getStateTablein classTimeGraphPresentationProvider- Returns:
- table of states with color and name
- See Also:
-
getStateTableIndex
Description copied from interface:ITimeGraphPresentationProviderReturns the index in the state table corresponding to this time event. The index should correspond to a state in the state table, otherwise the color SWT.COLOR_BLACK will be used. If the index returned is TRANSPARENT, only the event borders will be drawn. If the index returned is INVISIBLE or another negative, the event will not be drawn.- Specified by:
getStateTableIndexin interfaceITimeGraphPresentationProvider- Overrides:
getStateTableIndexin classTimeGraphPresentationProvider- Parameters:
event- the time event- Returns:
- the corresponding state table index
- See Also:
-
getEventStyle
Description copied from interface:ITimeGraphPresentationProviderGet the style map of a given ITimeEvent- Specified by:
getEventStylein interfaceITimeGraphPresentationProvider- Parameters:
event- the time event- Returns:
- the style map, as detailed in
StyleProperties
-
postDrawEvent
public void postDrawEvent(ITimeEvent event, org.eclipse.swt.graphics.Rectangle rect, org.eclipse.swt.graphics.GC gc) Description copied from interface:ITimeGraphPresentationProviderCalled after drawing an event- Specified by:
postDrawEventin interfaceITimeGraphPresentationProvider- Overrides:
postDrawEventin classTimeGraphPresentationProvider- Parameters:
event- the event that was drawnrect- the drawing rectanglegc- the graphics context
-
colorSettingsChanged
Description copied from interface:IColorSettingsListenerNotify the listener that the color settings have changed.- Specified by:
colorSettingsChangedin interfaceIColorSettingsListener- Parameters:
settings- The new color settings
-