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
  • Field Details

  • Constructor Details

    • AbstractCellDrawer

      public AbstractCellDrawer()
  • Method Details

    • withCell

      public AbstractCellDrawer<T> withCell(T cell)
    • drawBackground

      public void drawBackground(DrawingContext drawingContext)
      Specified by:
      drawBackground in interface Drawer
    • drawContent

      public abstract void drawContent(DrawingContext drawingContext)
      Specified by:
      drawContent in interface Drawer
    • drawBorders

      public void drawBorders(DrawingContext drawingContext)
      Specified by:
      drawBorders in interface Drawer
    • rowHeightIsBiggerThanOrEqualToCellHeight

      protected boolean rowHeightIsBiggerThanOrEqualToCellHeight()
    • getRowSpanAdaption

      protected float getRowSpanAdaption()
    • calculateOuterHeight

      protected float calculateOuterHeight()
    • getAdaptionForVerticalAlignment

      protected float getAdaptionForVerticalAlignment()
    • calculateInnerHeight

      protected abstract float calculateInnerHeight()