org.eclipse.emf.emfstore.internal.client.ui.views.historybrowserview.graph
Class SWTPlotRenderer

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.client.ui.views.historybrowserview.graph.AbstractPlotRenderer
      extended by 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.