// Javadoc inherited.
protected void initialiseStyleHandlers() {
super.initialiseStyleHandlers();
// center and justify are both treated as center which is the default.
DefaultKeywordMapper alignmentMapper = new DefaultKeywordMapper();
alignmentMapper.addMapping(TextAlignKeywords.LEFT, "left");
alignmentMapper.addMapping(TextAlignKeywords.RIGHT, "right");
horizontalRuleAlignHandler = new ValueHandlerToPropertyAdapter(StylePropertyDetails.TEXT_ALIGN,
new KeywordValueHandler(alignmentMapper));
DefaultKeywordMapper shadeMapper = new DefaultKeywordMapper();
shadeMapper.addMapping(BorderStyleKeywords.SOLID, "true");
horizontalRuleShadeHandler = new ValueHandlerToPropertyAdapter(StylePropertyDetails.BORDER_TOP_STYLE,
new KeywordValueHandler(shadeMapper));
horizontalRuleSizeHandler = new ValueHandlerToPropertyAdapter(StylePropertyDetails.HEIGHT,
new PositivePixelLengthHandler());
// noWrap property
// noWrapMapper maps "noWrap" to the NOWRAP value and will null to other
// values
final DefaultKeywordMapper noWrapMapper = new DefaultKeywordMapper();
noWrapMapper.addMapping(WhiteSpaceKeywords.NOWRAP, "noWrap");
noWrapHandler = new ValueHandlerToPropertyAdapter(StylePropertyDetails.WHITE_SPACE,
new KeywordValueHandler(noWrapMapper));
}