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

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.client.ui.views.historybrowserview.graph.AbstractPlotRenderer
Direct Known Subclasses:
SWTPlotRenderer

public abstract class AbstractPlotRenderer
extends Object

Basic commit graph renderer for graphical user interfaces.

Lanes are drawn as columns left-to-right in the graph, and the commit short message is drawn to the right of the lane lines for this cell. It is assumed that the commits are being drawn as rows of some sort of table.

Client applications can subclass this implementation to provide the necessary drawing primitives required to display a commit graph. Most of the graph layout is handled by this class, allowing applications to implement only a handful of primitive stubs.

This class is suitable for us within an AWT TableCellRenderer or within a SWT PaintListener registered on a Table instance. It is meant to rubber stamp the graphics necessary for one row of a plotted commit list.

Subclasses should call paintCommit(IPlotCommit, int) after they have otherwise configured their instance to draw one commit into the current location.

All drawing methods assume the coordinate space for the current commit's cell starts at (upper left corner is) 0,0. If this is not true (like say in SWT) the implementation must perform the cell offset computations within the various draw methods. Adapted from: org.eclipse.jgit.revplot.PlotCommitList.AbstractPlotRenderer


Constructor Summary
AbstractPlotRenderer()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPlotRenderer

public AbstractPlotRenderer()


Copyright © 2015. All Rights Reserved.