public class DependentSpacingRule
extends java.lang.Object
dependent spacing
target region changes its 'contains line feeds' status.Modifier and Type | Class and Description |
---|---|
static class |
DependentSpacingRule.Anchor |
static class |
DependentSpacingRule.Trigger |
Modifier and Type | Field and Description |
---|---|
static DependentSpacingRule |
DEFAULT |
Constructor and Description |
---|
DependentSpacingRule(DependentSpacingRule.Trigger trigger) |
Modifier and Type | Method and Description |
---|---|
int |
getData(DependentSpacingRule.Anchor anchor)
Allows to retrieve data associated with the given anchor.
|
DependentSpacingRule.Trigger |
getTrigger() |
boolean |
hasData(DependentSpacingRule.Anchor anchor) |
DependentSpacingRule |
registerData(DependentSpacingRule.Anchor anchor,
int data)
Allows to register given data for the given anchor within the current rule.
|
public static final DependentSpacingRule DEFAULT
public DependentSpacingRule(DependentSpacingRule.Trigger trigger)
public DependentSpacingRule.Trigger getTrigger()
public DependentSpacingRule registerData(DependentSpacingRule.Anchor anchor, int data)
anchor
- target anchordata
- data to register for the given anchorgetData(Anchor)
public boolean hasData(DependentSpacingRule.Anchor anchor)
anchor
- target data anchortrue
if there is a data registered for the given anchor within the current rule;
false
otherwisepublic int getData(DependentSpacingRule.Anchor anchor) throws java.lang.IllegalArgumentException
anchor
- target anchorjava.lang.IllegalArgumentException
- if no data is registered for the given anchor
(use hasData(Anchor)
for the preliminary examination)