|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.contribution.visualiser.renderers.ClassicVisualiserRenderer
Implements the visualiser renderer interface to provide the classic visualiser drawing style.
Constructor Summary | |
ClassicVisualiserRenderer()
|
Method Summary | |
int |
getColumnHeaderHeight()
The space required for headers of each columns |
protected java.lang.String |
getConstrainedString(org.eclipse.swt.graphics.GC gc,
java.lang.String name,
int width)
|
int |
getMarginSize()
The padding to be used around the edges of the visualiser |
int |
getSpacing()
The space in-between columns |
void |
paintColumn(org.eclipse.swt.graphics.GC gc,
IMember m,
int x,
int yoff,
int colWidth,
int colHeight,
boolean affected)
Paint the actual column (but not any stripes) |
void |
paintColumnHeader(org.eclipse.swt.graphics.GC gc,
IMember m,
int x,
int colWidth)
Paint the title of a column, typically the name of the given IMember |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ClassicVisualiserRenderer()
Method Detail |
public int getSpacing()
IVisualiserRenderer
getSpacing
in interface IVisualiserRenderer
public int getColumnHeaderHeight()
IVisualiserRenderer
getColumnHeaderHeight
in interface IVisualiserRenderer
public int getMarginSize()
IVisualiserRenderer
getMarginSize
in interface IVisualiserRenderer
public void paintColumnHeader(org.eclipse.swt.graphics.GC gc, IMember m, int x, int colWidth)
IVisualiserRenderer
paintColumnHeader
in interface IVisualiserRenderer
gc
- the graphics context to paint tom
- the IMember for this columnx
- the horizontal coordinate for the start of this columncolWidth
- the width of the columnpublic void paintColumn(org.eclipse.swt.graphics.GC gc, IMember m, int x, int yoff, int colWidth, int colHeight, boolean affected)
IVisualiserRenderer
paintColumn
in interface IVisualiserRenderer
gc
- the graphics context to paint tom
- the IMember for this columnx
- yoff
- colWidth
- colHeight
- affected
- indicates whether this column is affected by any stripesprotected java.lang.String getConstrainedString(org.eclipse.swt.graphics.GC gc, java.lang.String name, int width)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |