|
fop 2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.render.rtf.rtflib.rtfdoc.RtfSpaceSplitter
public class RtfSpaceSplitter
This class splits block attributes into space-before attribute, space-after attribute and common attributes.
Constructor Summary | |
---|---|
RtfSpaceSplitter(RtfAttributes attrs,
int previousSpace)
Create RtfSpaceSplitter with given RtfAttributes. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RtfSpaceSplitter(RtfAttributes attrs, int previousSpace)
attrs
- RtfAttributes for splittingpreviousSpace
- integer, representing accumulated spacingMethod Detail |
---|
public int split(java.lang.String key)
key
from
commonAttributes
and return it as int.
key
- attributes name to extract
public 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()
|
fop 2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |