public class RtfSpaceSplitter
extends java.lang.Object
| Constructor and Description |
|---|
RtfSpaceSplitter(RtfAttributes attrs,
int previousSpace)
Create RtfSpaceSplitter with given RtfAttributes.
|
| Modifier and Type | Method and Description |
|---|---|
int |
flush()
Adds corresponding attributes to their candidates.
|
RtfAttributes |
getCommonAttributes() |
int |
getSpaceBefore() |
boolean |
isAfterCadidateSet() |
boolean |
isBeforeCadidateSet() |
void |
setSpaceAfterCandidate(RtfAttributes candidate)
Sets a candidate for space-after property.
|
void |
setSpaceBeforeCandidate(RtfAttributes candidate)
Sets a candidate for space-before property.
|
int |
split(java.lang.String key)
Remove attributes with name
key from
commonAttributes and return it as int. |
void |
stopUpdatingSpaceBefore()
Stops updating candidates for space-before attribute.
|
public RtfSpaceSplitter(RtfAttributes attrs, int previousSpace)
attrs - RtfAttributes for splittingpreviousSpace - integer, representing accumulated spacingpublic int split(java.lang.String key)
key from
commonAttributes and return it as int.key - attributes name to extractpublic RtfAttributes getCommonAttributes()
public int getSpaceBefore()
public void setSpaceBeforeCandidate(RtfAttributes candidate)
candidate - instance of RtfAttributes, considered as
a candidate for space-before addingpublic void setSpaceAfterCandidate(RtfAttributes candidate)
candidate - instance of RtfAttributes, considered as
a candidate for space-after addingpublic boolean isBeforeCadidateSet()
public boolean isAfterCadidateSet()
public void stopUpdatingSpaceBefore()
public int flush()
Copyright 1999-2022 The Apache Software Foundation. All Rights Reserved.