Class XYChartLegendImageProvider
java.lang.Object
org.eclipse.tracecompass.tmf.ui.viewers.xychart.XYChartLegendImageProvider
- All Implemented Interfaces:
ILegendImageProvider2
Provides a legend image from an XY chart viewer. With a name, desired height
and width, an image is created.
- Since:
- 6.0
- Author:
- Yonni Chen
-
Constructor Summary
ConstructorsConstructorDescriptionXYChartLegendImageProvider(TmfCommonXAxisChartViewer chartViewer) Constructor -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.swt.graphics.ImagegetLegendImage(int imageHeight, int imageWidth, @NonNull Long id) Returns an image that represents the legend.
-
Constructor Details
-
XYChartLegendImageProvider
Constructor- Parameters:
chartViewer- XY Chart with which we create a legend image
-
-
Method Details
-
getLegendImage
public org.eclipse.swt.graphics.Image getLegendImage(int imageHeight, int imageWidth, @NonNull Long id) Description copied from interface:ILegendImageProvider2Returns an image that represents the legend.- Specified by:
getLegendImagein interfaceILegendImageProvider2- Parameters:
imageHeight- Desired image heightimageWidth- Desired image widthid- Id associate with a legend image- Returns:
- A legend image
-