public class TableCell extends Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
afterDelete |
boolean |
afterSpace |
com.vladsch.flexmark.util.html.CellAlignment |
alignment |
com.vladsch.flexmark.util.sequence.BasedSequence |
closeMarker |
int |
columnSpan |
static TableCell |
DEFAULT_CELL |
static int |
NOT_TRACKED |
static TableCell |
NULL |
com.vladsch.flexmark.util.sequence.BasedSequence |
openMarker |
int |
rowSpan |
int |
spanTrackedOffset |
com.vladsch.flexmark.util.ast.Node |
tableCellNode |
com.vladsch.flexmark.util.sequence.BasedSequence |
text |
int |
trackedTextAdjust |
int |
trackedTextOffset |
| Constructor and Description |
|---|
TableCell(CharSequence text,
int rowSpan,
int columnSpan) |
TableCell(com.vladsch.flexmark.util.ast.Node tableCellNode,
CharSequence openMarker,
CharSequence text,
CharSequence closeMarker,
int rowSpan,
int columnSpan) |
TableCell(com.vladsch.flexmark.util.ast.Node tableCellNode,
CharSequence openMarker,
CharSequence text,
CharSequence closeMarker,
int rowSpan,
int columnSpan,
com.vladsch.flexmark.util.html.CellAlignment alignment) |
TableCell(com.vladsch.flexmark.util.ast.Node tableCellNode,
CharSequence openMarker,
CharSequence text,
CharSequence closeMarker,
int rowSpan,
int columnSpan,
com.vladsch.flexmark.util.html.CellAlignment alignment,
int trackedTextOffset,
int spanTrackedOffset,
int trackedTextAdjust,
boolean afterSpace,
boolean afterDelete) |
TableCell(com.vladsch.flexmark.util.ast.Node tableCellNode,
CharSequence text,
int rowSpan,
int columnSpan,
com.vladsch.flexmark.util.html.CellAlignment alignment) |
TableCell(@NotNull TableCell other,
boolean copyNode,
int rowSpan,
int columnSpan,
com.vladsch.flexmark.util.html.CellAlignment alignment) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCellLength(TableCell previousCell)
Returns the cell length occupied in the table
|
int |
getCellPrefixLength(TableCell previousCell)
Returns the cell prefix length occupied in the table
|
int |
getCellSize(TableCell previousCell) |
int |
getEndOffset() |
int |
getInsideEndOffset() |
int |
getInsideStartOffset(TableCell previousCell) |
int |
getStartOffset(TableCell previousCell) |
int |
getTextEndOffset(TableCell previousCell) |
int |
getTextStartOffset(TableCell previousCell) |
int |
insideToTextOffset(int insideOffset,
TableCell previousCell) |
boolean |
isAtCell(int offset,
TableCell previousCell) |
boolean |
isInsideCell(int offset,
TableCell previousCell) |
int |
textToInsideOffset(int insideOffset,
TableCell previousCell) |
String |
toString() |
TableCell |
withAfterSpace(boolean afterSpace) |
TableCell |
withAlignment(com.vladsch.flexmark.util.html.CellAlignment alignment) |
TableCell |
withColumnSpan(int columnSpan) |
TableCell |
withRowSpan(int rowSpan) |
TableCell |
withSpanTrackedOffset(int spanTrackedOffset) |
TableCell |
withText(CharSequence text) |
TableCell |
withText(CharSequence openMarker,
CharSequence text,
CharSequence closeMarker) |
TableCell |
withTrackedOffset(int trackedTextOffset) |
TableCell |
withTrackedOffset(int trackedTextOffset,
boolean afterSpace,
boolean afterDelete) |
TableCell |
withTrackedTextAdjust(int trackedTextAdjust) |
public static final TableCell NULL
public static final TableCell DEFAULT_CELL
public static final int NOT_TRACKED
public final com.vladsch.flexmark.util.ast.Node tableCellNode
public final com.vladsch.flexmark.util.sequence.BasedSequence openMarker
public final com.vladsch.flexmark.util.sequence.BasedSequence text
public final com.vladsch.flexmark.util.sequence.BasedSequence closeMarker
public final int columnSpan
public final int rowSpan
public final com.vladsch.flexmark.util.html.CellAlignment alignment
public final int trackedTextOffset
public final int spanTrackedOffset
public final int trackedTextAdjust
public final boolean afterSpace
public final boolean afterDelete
public TableCell(CharSequence text, int rowSpan, int columnSpan)
public TableCell(com.vladsch.flexmark.util.ast.Node tableCellNode,
CharSequence text,
int rowSpan,
int columnSpan,
com.vladsch.flexmark.util.html.CellAlignment alignment)
public TableCell(com.vladsch.flexmark.util.ast.Node tableCellNode,
CharSequence openMarker,
CharSequence text,
CharSequence closeMarker,
int rowSpan,
int columnSpan)
public TableCell(com.vladsch.flexmark.util.ast.Node tableCellNode,
CharSequence openMarker,
CharSequence text,
CharSequence closeMarker,
int rowSpan,
int columnSpan,
com.vladsch.flexmark.util.html.CellAlignment alignment)
public TableCell(com.vladsch.flexmark.util.ast.Node tableCellNode,
CharSequence openMarker,
CharSequence text,
CharSequence closeMarker,
int rowSpan,
int columnSpan,
com.vladsch.flexmark.util.html.CellAlignment alignment,
int trackedTextOffset,
int spanTrackedOffset,
int trackedTextAdjust,
boolean afterSpace,
boolean afterDelete)
public TableCell(@NotNull
@NotNull TableCell other,
boolean copyNode,
int rowSpan,
int columnSpan,
com.vladsch.flexmark.util.html.CellAlignment alignment)
public TableCell withColumnSpan(int columnSpan)
public TableCell withText(CharSequence text)
public TableCell withText(CharSequence openMarker, CharSequence text, CharSequence closeMarker)
public TableCell withRowSpan(int rowSpan)
public TableCell withAlignment(com.vladsch.flexmark.util.html.CellAlignment alignment)
public TableCell withTrackedOffset(int trackedTextOffset)
public TableCell withTrackedOffset(int trackedTextOffset, boolean afterSpace, boolean afterDelete)
public TableCell withSpanTrackedOffset(int spanTrackedOffset)
public TableCell withTrackedTextAdjust(int trackedTextAdjust)
public TableCell withAfterSpace(boolean afterSpace)
public int getEndOffset()
public int getStartOffset(TableCell previousCell)
public int getInsideStartOffset(TableCell previousCell)
public int getTextStartOffset(TableCell previousCell)
public int getTextEndOffset(TableCell previousCell)
public int getInsideEndOffset()
public int getCellSize(TableCell previousCell)
public int insideToTextOffset(int insideOffset,
TableCell previousCell)
public int textToInsideOffset(int insideOffset,
TableCell previousCell)
public boolean isInsideCell(int offset,
TableCell previousCell)
public boolean isAtCell(int offset,
TableCell previousCell)
public int getCellLength(TableCell previousCell)
previousCell - previous cell or null for first cellpublic int getCellPrefixLength(TableCell previousCell)
previousCell - previous cell or null for first cellCopyright © 2020. All rights reserved.