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
Modifier and TypeClassDescriptionstatic class
Stores the bounds and the state of a cell that will be used to draw borders.static class
Utility class used to return coordinates and lengths at once.static enum
-
Field Summary
Modifier and TypeFieldDescriptionprotected BorderPainter.BorderCell[][]
protected BorderStyle
protected BorderPainter.PaintModeEnum
-
Constructor Summary
ConstructorDescriptionBorderPainter
(BorderPainter.BorderCell[][] borderCells, BorderStyle borderStyle) BorderPainter
(BorderPainter.BorderCell[][] borderCells, BorderStyle borderStyle, BorderPainter.PaintModeEnum paintMode) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
drawLineBottom
(org.eclipse.swt.graphics.GC gc, int ix, int iy) protected void
drawLineLeft
(org.eclipse.swt.graphics.GC gc, int ix, int iy) protected void
drawLineRight
(org.eclipse.swt.graphics.GC gc, int ix, int iy) protected void
drawLineTop
(org.eclipse.swt.graphics.GC gc, int ix, int iy) protected BorderPainter.LineValues
getLineValuesBottom
(int ix, int iy) protected BorderPainter.LineValues
getLineValuesLeft
(int ix, int iy) protected BorderPainter.LineValues
getLineValuesRight
(int ix, int iy) protected BorderPainter.LineValues
getLineValuesTop
(int ix, int iy) protected boolean
isInside
(int ix, int iy) protected boolean
isValid
(int ix, int iy) void
paintBorder
(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)
-