Class AbstractCellDrawer<T extends AbstractCell>
- java.lang.Object
-
- org.vandeseer.easytable.drawing.cell.AbstractCellDrawer<T>
-
- All Implemented Interfaces:
Drawer
- Direct Known Subclasses:
ImageCellDrawer,TextCellDrawer,VerticalTextCellDrawer
public abstract class AbstractCellDrawer<T extends AbstractCell> extends Object implements Drawer
-
-
Constructor Summary
Constructors Constructor Description AbstractCellDrawer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract floatcalculateInnerHeight()protected floatcalculateOuterHeight()voiddrawBackground(DrawingContext drawingContext)voiddrawBorders(DrawingContext drawingContext)abstract voiddrawContent(DrawingContext drawingContext)protected floatgetAdaptionForVerticalAlignment()protected floatgetRowSpanAdaption()protected booleanrowHeightIsBiggerThanOrEqualToCellHeight()AbstractCellDrawer<T>withCell(T cell)
-
-
-
Field Detail
-
cell
protected T extends AbstractCell cell
-
-
Method Detail
-
withCell
public AbstractCellDrawer<T> withCell(T cell)
-
drawBackground
public void drawBackground(DrawingContext drawingContext)
- Specified by:
drawBackgroundin interfaceDrawer
-
drawContent
public abstract void drawContent(DrawingContext drawingContext)
- Specified by:
drawContentin interfaceDrawer
-
drawBorders
public void drawBorders(DrawingContext drawingContext)
- Specified by:
drawBordersin interfaceDrawer
-
rowHeightIsBiggerThanOrEqualToCellHeight
protected boolean rowHeightIsBiggerThanOrEqualToCellHeight()
-
getRowSpanAdaption
protected float getRowSpanAdaption()
-
calculateOuterHeight
protected float calculateOuterHeight()
-
getAdaptionForVerticalAlignment
protected float getAdaptionForVerticalAlignment()
-
calculateInnerHeight
protected abstract float calculateInnerHeight()
-
-