| java.lang.Object org.apache.fop.render.rtf.rtflib.rtfdoc.RtfSpaceSplitter
RtfSpaceSplitter | public class RtfSpaceSplitter (Code) | | This class splits block attributes into space-before attribute, space-after
attribute and common attributes.
|
RtfSpaceSplitter | public RtfSpaceSplitter(RtfAttributes attrs, int previousSpace)(Code) | | Create RtfSpaceSplitter with given RtfAttributes.
Parameters: attrs - RtfAttributes for splitting Parameters: previousSpace - integer, representing accumulated spacing |
flush | public int flush()(Code) | | Adds corresponding attributes to their candidates.
integer, representing value of space-before/space-after attributes, that can't be added anywhere (i.e. these attributes hasn't their candidates) |
getCommonAttributes | public RtfAttributes getCommonAttributes()(Code) | | attributes, applicable to whole block. |
getSpaceBefore | public int getSpaceBefore()(Code) | | space-before value. |
isAfterCadidateSet | public boolean isAfterCadidateSet()(Code) | | true, if candidate for space-after is set. |
isBeforeCadidateSet | public boolean isBeforeCadidateSet()(Code) | | true, if candidate for space-before is set. |
setSpaceAfterCandidate | public void setSpaceAfterCandidate(RtfAttributes candidate)(Code) | | Sets a candidate for space-after property.
Parameters: candidate - instance of RtfAttributes , considered as a candidate for space-after adding |
setSpaceBeforeCandidate | public void setSpaceBeforeCandidate(RtfAttributes candidate)(Code) | | Sets a candidate for space-before property.
Parameters: candidate - instance of RtfAttributes , considered as a candidate for space-before adding |
split | public int split(String key)(Code) | | Remove attributes with name key from
commonAttributes and return it as int.
Parameters: key - attributes name to extract integer, representing value of extracted attributes |
stopUpdatingSpaceBefore | public void stopUpdatingSpaceBefore()(Code) | | Stops updating candidates for space-before attribute.
|
|
|