public class RightEdgeAlignmentProcessor extends AbstractBlockAlignmentProcessor
BlockAlignmentProcessor.Context, BlockAlignmentProcessor.Result| Constructor and Description |
|---|
RightEdgeAlignmentProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
applyIndentToTheFirstBlockOnLine(IndentData alignmentAnchorIndent,
BlockAlignmentProcessor.Context context)
Encapsulates logic of applying alignment anchor indent to the target block that starts new line.
|
protected IndentData |
calculateAlignmentAnchorIndent(BlockAlignmentProcessor.Context context)
Asks to calculate indent used for the anchor block of the alignment used by the
target block. |
protected int |
getAlignmentIndentDiff(IndentData alignmentAnchorIndent,
BlockAlignmentProcessor.Context context)
Calculates the difference between alignment anchor indent and current target block indent.
|
applyAlignmentprotected IndentData calculateAlignmentAnchorIndent(BlockAlignmentProcessor.Context context)
AbstractBlockAlignmentProcessortarget block.calculateAlignmentAnchorIndent in class AbstractBlockAlignmentProcessorcontext - current processing contextprotected boolean applyIndentToTheFirstBlockOnLine(IndentData alignmentAnchorIndent, BlockAlignmentProcessor.Context context)
AbstractBlockAlignmentProcessorapplyIndentToTheFirstBlockOnLine in class AbstractBlockAlignmentProcessoralignmentAnchorIndent - alignment anchor indentcontext - current processing contexttrue if desired alignment indent is applied to the current block;
false otherwiseprotected int getAlignmentIndentDiff(IndentData alignmentAnchorIndent, BlockAlignmentProcessor.Context context)
AbstractBlockAlignmentProcessorgetAlignmentIndentDiff in class AbstractBlockAlignmentProcessoralignmentAnchorIndent - alignment anchor indentcontext - current processing context