ElementAlignment.class, context);
final ElementAlignment vAlign = (ElementAlignment) attributes.getMetaAttribute
(MetaAttributeNames.Style.NAMESPACE, MetaAttributeNames.Style.VERTICAL_ALIGNMENT, ElementAlignment.class,
context);
final ElementStyleSheet styleSheet = e.getStyle();
if (isMetaStylingEnabled(e.getAttributes().getAttribute
(AttributeNames.Wizard.NAMESPACE, AttributeNames.Wizard.ENABLE_STYLE_VALIGNMENT)))
{
styleSheet.setStyleProperty(ElementStyleKeys.VALIGNMENT, vAlign);
}
if (isMetaStylingEnabled(e.getAttributes().getAttribute
(AttributeNames.Wizard.NAMESPACE, AttributeNames.Wizard.ENABLE_STYLE_ALIGNMENT)))
{
if (hAlign != null)
{
styleSheet.setStyleProperty(ElementStyleKeys.ALIGNMENT, hAlign);
}
else
{
if (LabelType.INSTANCE.getMetaData().getName().equals(typeName) == false &&
ResourceLabelType.INSTANCE.getMetaData().getName().equals(typeName) == false)
{
styleSheet.setStyleProperty(ElementStyleKeys.ALIGNMENT, computeAlignment(attributes, context));
}
}
}
if (isMetaStylingEnabled(e.getAttributes().getAttribute
(AttributeNames.Wizard.NAMESPACE, AttributeNames.Wizard.ENABLE_STYLE_BACKGROUND_COLOR)))
{
styleSheet.setStyleProperty(ElementStyleKeys.BACKGROUND_COLOR, bgColor);
}
if (isMetaStylingEnabled(e.getAttributes().getAttribute
(AttributeNames.Wizard.NAMESPACE, AttributeNames.Wizard.ENABLE_STYLE_COLOR)))
{
styleSheet.setStyleProperty(ElementStyleKeys.PAINT, textColor);
}
if (isMetaStylingEnabled(e.getAttributes().getAttribute
(AttributeNames.Wizard.NAMESPACE, AttributeNames.Wizard.ENABLE_STYLE_FONTFAMILY)))
{
styleSheet.setStyleProperty(TextStyleKeys.FONT, font);
}
if (isMetaStylingEnabled(e.getAttributes().getAttribute
(AttributeNames.Wizard.NAMESPACE, AttributeNames.Wizard.ENABLE_STYLE_FONTSIZE)))
{
styleSheet.setStyleProperty(TextStyleKeys.FONTSIZE, fontSize);
}
if (isMetaStylingEnabled(e.getAttributes().getAttribute
(AttributeNames.Wizard.NAMESPACE, AttributeNames.Wizard.ENABLE_STYLE_UNDERLINE)))
{
styleSheet.setStyleProperty(TextStyleKeys.UNDERLINED, underline);
}
if (isMetaStylingEnabled(e.getAttributes().getAttribute
(AttributeNames.Wizard.NAMESPACE, AttributeNames.Wizard.ENABLE_STYLE_BOLD)))
{
styleSheet.setStyleProperty(TextStyleKeys.BOLD, bold);
}
if (isMetaStylingEnabled(e.getAttributes().getAttribute
(AttributeNames.Wizard.NAMESPACE, AttributeNames.Wizard.ENABLE_STYLE_STRIKETHROUGH)))
{
styleSheet.setStyleProperty(TextStyleKeys.STRIKETHROUGH, strikethrough);
}
if (isMetaStylingEnabled(e.getAttributes().getAttribute
(AttributeNames.Wizard.NAMESPACE, AttributeNames.Wizard.ENABLE_STYLE_ITALICS)))
{
styleSheet.setStyleProperty(TextStyleKeys.ITALIC, italic);
}
}
final boolean legacyMode = isLegacyMode();
if (Boolean.TRUE.equals(allowAttributesFlag) &&