org.eclipse.emf.emfstore.internal.client.ui.views.historybrowserview.graph
Class SWTPlotRenderer
java.lang.Object
org.eclipse.emf.emfstore.internal.client.ui.views.historybrowserview.graph.AbstractPlotRenderer
org.eclipse.emf.emfstore.internal.client.ui.views.historybrowserview.graph.SWTPlotRenderer
public class SWTPlotRenderer
- extends AbstractPlotRenderer
A renderer for IPlotCommits able to draw these commits into a table or tree cell.
Originally taken from org.eclipse.egit.ui.internal.history.
Constructor Summary |
SWTPlotRenderer(org.eclipse.swt.widgets.Display d)
Creates a new SWTPlotRenderer that can draw IPlotCommits for table/tree events. |
Method Summary |
int |
getTextHeight()
|
void |
paint(org.eclipse.swt.widgets.Event event,
IPlotCommit representer)
Paints a IPlotCommit into the cell determined by the given event. |
SWTPlotRenderer
public SWTPlotRenderer(org.eclipse.swt.widgets.Display d)
- Creates a new SWTPlotRenderer that can draw IPlotCommits for table/tree events.
- Parameters:
d
- The display for the renderer.
paint
public void paint(org.eclipse.swt.widgets.Event event,
IPlotCommit representer)
- Paints a IPlotCommit into the cell determined by the given event.
- Parameters:
event
- The event triggering the painting.representer
- The commit to paint.
getTextHeight
public int getTextHeight()
- Returns:
- text height in pixel
Copyright © 2015. All Rights Reserved.