if (maybeLinealModel instanceof LinealModel)
{
return (LinealModel) maybeLinealModel;
}
final LinealModel verticalLinealModel = new LinealModel();
final Object attribute = rootBand.getAttribute(ReportDesignerParserModule.NAMESPACE,
ReportDesignerParserModule.VERTICAL_GUIDE_LINES_ATTRIBUTE);
if (attribute instanceof String)
{
verticalLinealModel.parse(attribute.toString());
}
verticalLinealModel.addLinealModelListener(new LinealUpdateHandler
(rootBand, verticalLinealModel, ReportDesignerParserModule.VERTICAL_GUIDE_LINES_ATTRIBUTE));
rootBand.setAttribute(ReportDesignerParserModule.NAMESPACE,
ReportDesignerBoot.DESIGNER_LINEAL_MODEL_OBJECT, verticalLinealModel, false);
return verticalLinealModel;
}