private GwtAxisTitleOptions getAxisTitleOptions(UIDL axisTitleUIDL) {
if (axisTitleUIDL == null
|| axisTitleUIDL.getAttributeNames().size() == 0) {
return null;
}
GwtAxisTitleOptions titleOptions = GwtAxisTitleOptions.create();
if (axisTitleUIDL.hasAttribute("align")) {
titleOptions.setAlign(axisTitleUIDL.getStringAttribute("align"));
}
if (axisTitleUIDL.hasAttribute("margin")) {
titleOptions.setMargin(axisTitleUIDL.getIntAttribute("margin"));
}
if (axisTitleUIDL.hasAttribute("rotation")) {
titleOptions.setRotation(axisTitleUIDL.getIntAttribute("rotation"));
}
if (axisTitleUIDL.hasAttribute("style")) {
titleOptions.setStyle(axisTitleUIDL.getStringAttribute("style"));
}
if (axisTitleUIDL.hasAttribute("text")) {
titleOptions.setText(axisTitleUIDL.getStringAttribute("text"));
}
return titleOptions;
}