|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.contribution.visualiser.renderers.ClassicVisualiserRenderer
org.eclipse.contribution.visualiser.renderers.DefaultVisualiserRenderer
Implements the visualiser renderer interface to provide the default visualiser drawing style, which has plain columns plus Eclipse style headers with rounded corners. Custom renderers can either implement the interface directly or extend this class, or any of the other renderers.
Field Summary | |
protected org.eclipse.swt.graphics.Color[] |
colorList
|
protected static byte[][] |
cornerData
|
protected static int |
cornerSize
|
protected org.eclipse.swt.graphics.Color |
lightGrayGradientColor
|
protected org.eclipse.swt.graphics.Color |
outlineColor
|
protected org.eclipse.swt.graphics.Color |
outlineColor2
|
Constructor Summary | |
DefaultVisualiserRenderer()
|
Method Summary | |
int |
getColumnHeaderHeight()
The space required for headers of each columns |
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 org.eclipse.contribution.visualiser.renderers.ClassicVisualiserRenderer |
getConstrainedString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected org.eclipse.swt.graphics.Color outlineColor
protected org.eclipse.swt.graphics.Color outlineColor2
protected org.eclipse.swt.graphics.Color lightGrayGradientColor
protected org.eclipse.swt.graphics.Color[] colorList
protected static int cornerSize
protected static byte[][] cornerData
Constructor Detail |
public DefaultVisualiserRenderer()
Method Detail |
public int getColumnHeaderHeight()
IVisualiserRenderer
getColumnHeaderHeight
in interface IVisualiserRenderer
getColumnHeaderHeight
in class ClassicVisualiserRenderer
public void paintColumnHeader(org.eclipse.swt.graphics.GC gc, IMember m, int x, int colWidth)
IVisualiserRenderer
paintColumnHeader
in interface IVisualiserRenderer
paintColumnHeader
in class ClassicVisualiserRenderer
public int getSpacing()
IVisualiserRenderer
getSpacing
in interface IVisualiserRenderer
getSpacing
in class ClassicVisualiserRenderer
public int getMarginSize()
IVisualiserRenderer
getMarginSize
in interface IVisualiserRenderer
getMarginSize
in class ClassicVisualiserRenderer
public 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
paintColumn
in class ClassicVisualiserRenderer
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |