|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.kupzog.ktable.renderers.BorderPainter
public abstract class BorderPainter
Helper class that draws several kind of borders.
Constructor Summary | |
---|---|
BorderPainter()
|
Method Summary | |
---|---|
static org.eclipse.swt.graphics.Rectangle |
drawDefaultSolidCellLine(org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Rectangle rect,
org.eclipse.swt.graphics.Color vBorderColor,
org.eclipse.swt.graphics.Color hBorderColor)
Simply draws a border line with width 1 on the bottom (horizontal) and on the right side (vertical). |
static org.eclipse.swt.graphics.Rectangle |
drawDoubleLineSeperatorBorder(org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Rectangle rect,
org.eclipse.swt.graphics.Color vColor,
org.eclipse.swt.graphics.Color hColor,
org.eclipse.swt.graphics.Color seperatorBGColor,
boolean vSeperator,
boolean hSeperator)
|
static org.eclipse.swt.graphics.Rectangle |
drawSolidCellLines(org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Rectangle rect,
org.eclipse.swt.graphics.Color topBorderColor,
org.eclipse.swt.graphics.Color bottomBorderColor,
org.eclipse.swt.graphics.Color leftBorderColor,
org.eclipse.swt.graphics.Color rightBorderColor,
int topWidth,
int bottomWidth,
int leftWidth,
int rightWidth)
Simply draws a solid border line. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BorderPainter()
Method Detail |
---|
public static org.eclipse.swt.graphics.Rectangle drawDoubleLineSeperatorBorder(org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle rect, org.eclipse.swt.graphics.Color vColor, org.eclipse.swt.graphics.Color hColor, org.eclipse.swt.graphics.Color seperatorBGColor, boolean vSeperator, boolean hSeperator)
public static final org.eclipse.swt.graphics.Rectangle drawDefaultSolidCellLine(org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle rect, org.eclipse.swt.graphics.Color vBorderColor, org.eclipse.swt.graphics.Color hBorderColor)
The result is a table where a 1px line is between every two cells. This should be considered default behavior.
gc
- The GC to use when painting.rect
- The cell are to paint a border around.vBorderColor
- The vertical line color for the line on the right.hBorderColor
- The horizontal line color for the line on the bottom.public static final org.eclipse.swt.graphics.Rectangle drawSolidCellLines(org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle rect, org.eclipse.swt.graphics.Color topBorderColor, org.eclipse.swt.graphics.Color bottomBorderColor, org.eclipse.swt.graphics.Color leftBorderColor, org.eclipse.swt.graphics.Color rightBorderColor, int topWidth, int bottomWidth, int leftWidth, int rightWidth)
Setting lineweigts > 0 makes the cell content area returned shrink!
gc
- The GC that should be used when drawing.rect
- The cell area as given by KTable.topBorderColor
- The border color for horizontal top lines.bottomBorderColor
- The border color for horizontal bottom line.leftBorderColor
- The border color for the left vertical line.rightBorderColor
- The border color for vertical right line.leftWidth
- additional width of the line on the leftrightWidth
- additional width of the line on the righttopWidth
- additional width of the line on the topbottomWidth
- additional width of the line on the bottom.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |