Class TableCell

java.lang.Object
com.vladsch.flexmark.util.format.TableCell

public class TableCell extends Object
  • Field Details

    • NULL

      public static final TableCell NULL
    • DEFAULT_CELL

      public static final TableCell DEFAULT_CELL
    • NOT_TRACKED

      public static final int NOT_TRACKED
      See Also:
    • tableCellNode

      public final Node tableCellNode
    • openMarker

      public final BasedSequence openMarker
    • text

      public final BasedSequence text
    • closeMarker

      public final BasedSequence closeMarker
    • columnSpan

      public final int columnSpan
    • rowSpan

      public final int rowSpan
    • alignment

      public final CellAlignment alignment
    • trackedTextOffset

      public final int trackedTextOffset
    • spanTrackedOffset

      public final int spanTrackedOffset
    • trackedTextAdjust

      public final int trackedTextAdjust
    • afterSpace

      public final boolean afterSpace
    • afterDelete

      public final boolean afterDelete
  • Constructor Details

  • Method Details

    • withColumnSpan

      public TableCell withColumnSpan(int columnSpan)
    • withText

      public TableCell withText(CharSequence text)
    • withText

      public TableCell withText(CharSequence openMarker, CharSequence text, CharSequence closeMarker)
    • withRowSpan

      public TableCell withRowSpan(int rowSpan)
    • withAlignment

      public TableCell withAlignment(CellAlignment alignment)
    • withTrackedOffset

      public TableCell withTrackedOffset(int trackedTextOffset)
    • withTrackedOffset

      public TableCell withTrackedOffset(int trackedTextOffset, boolean afterSpace, boolean afterDelete)
    • withSpanTrackedOffset

      public TableCell withSpanTrackedOffset(int spanTrackedOffset)
    • withTrackedTextAdjust

      public TableCell withTrackedTextAdjust(int trackedTextAdjust)
    • withAfterSpace

      public TableCell withAfterSpace(boolean afterSpace)
    • getLastSegment

      BasedSequence getLastSegment()
    • getEndOffset

      public int getEndOffset()
    • getStartOffset

      public int getStartOffset(TableCell previousCell)
    • getInsideStartOffset

      public int getInsideStartOffset(TableCell previousCell)
    • getTextStartOffset

      public int getTextStartOffset(TableCell previousCell)
    • getTextEndOffset

      public int getTextEndOffset(TableCell previousCell)
    • getInsideEndOffset

      public int getInsideEndOffset()
    • getCellSize

      public int getCellSize(TableCell previousCell)
    • insideToTextOffset

      public int insideToTextOffset(int insideOffset, TableCell previousCell)
    • textToInsideOffset

      public int textToInsideOffset(int insideOffset, TableCell previousCell)
    • isInsideCell

      public boolean isInsideCell(int offset, TableCell previousCell)
    • isAtCell

      public boolean isAtCell(int offset, TableCell previousCell)
    • getCellLength

      public int getCellLength(TableCell previousCell)
      Returns the cell length occupied in the table
      Parameters:
      previousCell - previous cell or null for first cell
      Returns:
      length of the cell as occupied in the original file
    • getCellPrefixLength

      public int getCellPrefixLength(TableCell previousCell)
      Returns the cell prefix length occupied in the table
      Parameters:
      previousCell - previous cell or null for first cell
      Returns:
      length of cell's prefix before actual text as occupied in the file
    • dumpSequence

      private CharSequence dumpSequence(BasedSequence sequence)
    • toString

      public String toString()
      Overrides:
      toString in class Object