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.
|
applyAlignment
protected IndentData calculateAlignmentAnchorIndent(BlockAlignmentProcessor.Context context)
AbstractBlockAlignmentProcessor
target block
.calculateAlignmentAnchorIndent
in class AbstractBlockAlignmentProcessor
context
- current processing contextprotected boolean applyIndentToTheFirstBlockOnLine(IndentData alignmentAnchorIndent, BlockAlignmentProcessor.Context context)
AbstractBlockAlignmentProcessor
applyIndentToTheFirstBlockOnLine
in class AbstractBlockAlignmentProcessor
alignmentAnchorIndent
- 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)
AbstractBlockAlignmentProcessor
getAlignmentIndentDiff
in class AbstractBlockAlignmentProcessor
alignmentAnchorIndent
- alignment anchor indentcontext
- current processing context