Class BorderPainter
java.lang.Object
org.eclipse.nebula.widgets.nattable.painter.cell.BorderPainter
Draws borders based on a 2D array of
BorderPainter.BorderCell and styled
accordingly to a BorderStyle.- Since:
- 1.5
- Author:
- Loris Securo
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classStores the bounds and the state of a cell that will be used to draw borders.static classUtility class used to return coordinates and lengths at once.static enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BorderPainter.BorderCell[][]protected BorderStyleprotected BorderPainter.PaintModeEnum -
Constructor Summary
ConstructorsConstructorDescriptionBorderPainter(BorderPainter.BorderCell[][] borderCells, BorderStyle borderStyle) BorderPainter(BorderPainter.BorderCell[][] borderCells, BorderStyle borderStyle, BorderPainter.PaintModeEnum paintMode) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddrawLineBottom(org.eclipse.swt.graphics.GC gc, int ix, int iy) protected voiddrawLineLeft(org.eclipse.swt.graphics.GC gc, int ix, int iy) protected voiddrawLineRight(org.eclipse.swt.graphics.GC gc, int ix, int iy) protected voiddrawLineTop(org.eclipse.swt.graphics.GC gc, int ix, int iy) protected BorderPainter.LineValuesgetLineValuesBottom(int ix, int iy) protected BorderPainter.LineValuesgetLineValuesLeft(int ix, int iy) protected BorderPainter.LineValuesgetLineValuesRight(int ix, int iy) protected BorderPainter.LineValuesgetLineValuesTop(int ix, int iy) protected booleanisInside(int ix, int iy) protected booleanisValid(int ix, int iy) voidpaintBorder(org.eclipse.swt.graphics.GC gc)
-
Field Details
-
borderCells
-
borderStyle
-
paintMode
-
-
Constructor Details
-
BorderPainter
-
BorderPainter
public BorderPainter(BorderPainter.BorderCell[][] borderCells, BorderStyle borderStyle, BorderPainter.PaintModeEnum paintMode)
-
-
Method Details
-
paintBorder
public void paintBorder(org.eclipse.swt.graphics.GC gc) -
getLineValuesLeft
-
getLineValuesRight
-
getLineValuesTop
-
getLineValuesBottom
-
drawLineLeft
protected void drawLineLeft(org.eclipse.swt.graphics.GC gc, int ix, int iy) -
drawLineRight
protected void drawLineRight(org.eclipse.swt.graphics.GC gc, int ix, int iy) -
drawLineTop
protected void drawLineTop(org.eclipse.swt.graphics.GC gc, int ix, int iy) -
drawLineBottom
protected void drawLineBottom(org.eclipse.swt.graphics.GC gc, int ix, int iy) -
isInside
protected boolean isInside(int ix, int iy) -
isValid
protected boolean isValid(int ix, int iy)
-