Examples of ElementFactory


Examples of com.volantis.mcs.xdime.initialisation.ElementFactory

public class TickerResponseElementHandler extends ElementFactoryMapPopulator {

    // Javadoc inherited.
    public void populateMap(ElementFactoryMapBuilder builder) {

        builder.addMapping(TickerResponseElements.FEED_POLLER, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new FeedPollerElement(context);
             }
        });

        builder.addMapping(TickerResponseElements.ADD_ITEM, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new AddItemElement(context);
            }
        });

        builder.addMapping(TickerResponseElements.TITLE, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new TitleElement(context);
            }
        });

        builder.addMapping(TickerResponseElements.ICON, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new IconElement(context);
            }
        });

        builder.addMapping(TickerResponseElements.DESCRIPTION, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new DescriptionElement(context);
            }
        });

        builder.addMapping(TickerResponseElements.PLAIN_DESCRIPTION, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new PlainDescriptionElement(context);
            }
        });

        builder.addMapping(TickerResponseElements.REMOVE_ITEM, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new RemoveItemElement(context);
            }
        });

        builder.addMapping(TickerResponseElements.SET_SKIP_TIMES, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new SetSkipTimesElement(context);
            }
        });

        builder.addMapping(TickerResponseElements.SKIP_TIME, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new SkipTimeElement(context);
            }
        });

        builder.addMapping(TickerResponseElements.SET_URL, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new SetURLElement(context);
            }
        });

        builder.addMapping(TickerResponseElements.SET_POLLING_INTERVAL, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new SetPollingIntervalElement(context);
            }
        });
View Full Code Here

Examples of org.eclipse.birt.report.model.api.ElementFactory

      SessionHandle session = engine.newSessionHandle(ULocale.ENGLISH);

      // create a design or a template. Then create a report element
      // factory
      ReportDesignHandle design = session.createDesign();
      ElementFactory efactory = design.getElementFactory();

      // set my initial properties
      design.setDisplayName("my Test Report");
      design.setDescription("test");
      design.setIconFile("/templates/blank_report.gif");
      design.setFileName("c:/TEMP/sample.rptdesign");
      design.setDefaultUnits("in");
      design.setProperty("comments", "what not and what have you");

      SimpleMasterPageHandle element = efactory
          .newSimpleMasterPage("Page Master");
      DesignElementHandle footerText = efactory.newTextItem("test");
      footerText.setProperty("contentType", "html");
      footerText.setStringProperty("content", "MyTest");

      // Add in a simple page footer to our master page
      element.getPageFooter().add(footerText);

      // try to add the footer to the Master Page
      try {
        design.getMasterPages().add(element);
      } catch (ContentException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      } catch (NameException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      }

      // create a new grid element, and set the width to 100 percent of
      // the page design
      GridHandle grid = efactory.newGridItem(null, 1, 1);
      grid.setWidth("100%");

      // Add the grid to the report body
      design.getBody().add(grid);

      // create a new row
      RowHandle row = (RowHandle) grid.getRows().get(0);

      // Create a label and add it to the first cell.
      LabelHandle label = efactory.newLabel("Hello, world!");
      label.setText("Hello, World!");
      CellHandle cell = (CellHandle) row.getCells().get(0);
      cell.getContent().add(label);

      // save the report design
View Full Code Here

Examples of org.gstreamer.ElementFactory

        * Not using ElementFactory.make() here probably prevents the element
        * from being placed in the object reference map and therefore forces
        * type mapper conversion - what we want to test
        */
      
       ElementFactory factory = GstElementFactoryAPI.GSTELEMENTFACTORY_API.gst_element_factory_find("videotestsrc");
       p = GstElementFactoryAPI.GSTELEMENTFACTORY_API.ptr_gst_element_factory_create(factory, "videotestsrc");
   }
           
      GValue v = new GValue();
      api.g_value_init(v, GType.OBJECT);
View Full Code Here

Examples of org.locationtech.udig.project.element.ElementFactory

     * <!-- end-user-doc -->
     * @generated
     */
    public static ElementFactory init() {
        try {
            ElementFactory theElementFactory = (ElementFactory) EPackage.Registry.INSTANCE
                    .getEFactory("http:///net/refractions/udig/project/element.ecore"); //$NON-NLS-1$
            if (theElementFactory != null) {
                return theElementFactory;
            }
        } catch (Exception exception) {
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.elementfactory.ElementFactory

   * @throws org.xml.sax.SAXException if there is a parsing error.
   */
  protected void startParsing(final PropertyAttributes atts)
      throws SAXException
  {
    final ElementFactory factory = getElementFactory();
    factory.setName(atts.getValue(getUri(), AbstractElementReadHandler.NAME_ATT));
    styleClass = atts.getValue(getUri(), AbstractElementReadHandler.STYLE_CLASS_ATT);

    final Color color = ReportParserUtil.parseColor(atts.getValue(getUri(), AbstractElementReadHandler.COLOR_ATT),
        null);
    factory.setColor(color);

    final String posX = atts.getValue(getUri(), "x");
    if (posX != null)
    {
      factory.setX(new Float(ReportParserUtil.parseRelativeFloat
          (posX, "Attribute 'x' not valid", getLocator())));
    }

    final String posY = atts.getValue(getUri(), "y");
    if (posY != null)
    {
      factory.setY(new Float(ReportParserUtil.parseRelativeFloat
          (posY, "Attribute 'y' not valid", getLocator())));
    }

    final String width = atts.getValue(getUri(), "width");
    if (width != null)
    {
      factory.setMinimumWidth(new Float(ReportParserUtil.parseRelativeFloat
          (width, "Attribute 'width' not valid", getLocator())));
    }

    final String height = atts.getValue(getUri(), "height");
    if (height != null)
    {
      factory.setMinimumHeight(new Float(ReportParserUtil.parseRelativeFloat
          (height, "Attribute 'height' not valid", getLocator())));
    }

    final String useMinChunkWidth = atts.getValue(getUri(), "use-min-chunkwidth");
    if (useMinChunkWidth != null)
    {
      factory.setUseMinChunkWidth(ReportParserUtil.parseBoolean(useMinChunkWidth, getLocator()));
    }

    final String dynamicValue = atts.getValue(getUri(), AbstractElementReadHandler.DYNAMIC_ATT);
    if (dynamicValue != null)
    {
      final Boolean dynamic = ParserUtil.parseBoolean(dynamicValue, getLocator());
      factory.setDynamicHeight(dynamic);
    }

    final String visibleValue = atts.getValue(getUri(), AbstractElementReadHandler.VISIBLE_ATT);
    if (visibleValue != null)
    {
      final boolean value = ParserUtil.parseBoolean(visibleValue, true);
      factory.setVisible((value) ? Boolean.TRUE : Boolean.FALSE);
    }

    final String href = atts.getValue(getUri(), AbstractElementReadHandler.HREF_ATT);
    if (href != null)
    {
      factory.setHRefTarget(href);
    }

    final String hrefWindow = atts.getValue(getUri(), AbstractElementReadHandler.HREF_WINDOW_ATT);
    if (hrefWindow != null)
    {
      factory.setHRefWindow(hrefWindow);
    }
    final String hrefTitle = atts.getValue(getUri(), "href-title");
    if (hrefTitle != null)
    {
      factory.setHRefTitle(hrefTitle);
    }

    final String avoidBreaks = atts.getValue(getUri(), "avoid-pagebreaks");
    if (avoidBreaks != null)
    {
      final boolean value = ParserUtil.parseBoolean(avoidBreaks, true);
      factory.setAvoidPagebreaks((value) ? Boolean.TRUE : Boolean.FALSE);
    }

    final String overflowX = atts.getValue(getUri(), "overflow-x");
    if (overflowX != null)
    {
      final boolean value = ParserUtil.parseBoolean(overflowX, false);
      factory.setOverflowX((value) ? Boolean.TRUE : Boolean.FALSE);
    }

    final String overflowY = atts.getValue(getUri(), "overflow-y");
    if (overflowY != null)
    {
      final boolean value = ParserUtil.parseBoolean(overflowY, false);
      factory.setOverflowY((value) ? Boolean.TRUE : Boolean.FALSE);
    }


    final String widows = atts.getValue(getUri(), "widows");
    if (widows != null)
    {
      factory.setWidows(ReportParserUtil.parseInteger(widows, getLocator()));
    }

    final String orphans = atts.getValue(getUri(), "orpans");
    if (orphans != null)
    {
      factory.setOrphans(ReportParserUtil.parseInteger(orphans, getLocator()));
    }

    final String padding = atts.getValue(getUri(), "padding");
    if (padding != null)
    {
      factory.setPadding(ReportParserUtil.parseFloat(padding, getLocator()));
    }

    final String paddingTop = atts.getValue(getUri(), "padding-top");
    if (paddingTop != null)
    {
      factory.setPaddingTop(ReportParserUtil.parseFloat(paddingTop, getLocator()));
    }

    final String paddingLeft = atts.getValue(getUri(), "padding-left");
    if (paddingLeft != null)
    {
      factory.setPaddingLeft(ReportParserUtil.parseFloat(paddingLeft, getLocator()));
    }

    final String paddingBottom = atts.getValue(getUri(), "padding-bottom");
    if (paddingBottom != null)
    {
      factory.setPaddingBottom(ReportParserUtil.parseFloat(paddingBottom, getLocator()));
    }

    final String paddingRight = atts.getValue(getUri(), "padding-right");
    if (paddingRight != null)
    {
      factory.setPaddingRight(ReportParserUtil.parseFloat(paddingRight, getLocator()));
    }

    final String attr = atts.getValue(getUri(), "background-color");
    factory.setBackgroundColor(ReportParserUtil.parseColor(attr, null));

    final String borderColor = atts.getValue(getUri(), "border-color");
    factory.setBorderColor(ReportParserUtil.parseColor(borderColor, null));
    final String borderColorTop = atts.getValue(getUri(), "border-top-color");
    factory.setBorderTopColor(ReportParserUtil.parseColor(borderColorTop, null));
    final String borderColorLeft = atts.getValue(getUri(), "border-left-color");
    factory.setBorderLeftColor(ReportParserUtil.parseColor(borderColorLeft, null));
    final String borderColorBottom = atts.getValue(getUri(), "border-bottom-color");
    factory.setBorderBottomColor(ReportParserUtil.parseColor(borderColorBottom, null));
    final String borderColorRight = atts.getValue(getUri(), "border-right-color");
    factory.setBorderRightColor(ReportParserUtil.parseColor(borderColorRight, null));
    final String borderColorBreak = atts.getValue(getUri(), "border-break-color");
    factory.setBorderBreakColor(ReportParserUtil.parseColor(borderColorBreak, null));

    final String borderWidth = atts.getValue(getUri(), "border-width");
    if (borderWidth != null)
    {
      factory.setBorderWidth(ReportParserUtil.parseFloat(borderWidth, getLocator()));
    }
    final String borderWidthTop = atts.getValue(getUri(), "border-top-width");
    if (borderWidthTop != null)
    {
      factory.setBorderTopWidth(ReportParserUtil.parseFloat(borderWidthTop, getLocator()));
    }

    final String borderWidthLeft = atts.getValue(getUri(), "border-left-width");
    if (borderWidthLeft != null)
    {
      factory.setBorderLeftWidth(ReportParserUtil.parseFloat(borderWidthLeft, getLocator()));
    }

    final String borderWidthBottom = atts.getValue(getUri(), "border-bottom-width");
    if (borderWidthBottom != null)
    {
      factory.setBorderBottomWidth(ReportParserUtil.parseFloat(borderWidthBottom, getLocator()));
    }

    final String borderWidthRight = atts.getValue(getUri(), "border-right-width");
    if (borderWidthRight != null)
    {
      factory.setBorderRightWidth(ReportParserUtil.parseFloat(borderWidthRight, getLocator()));
    }
    final String borderWidthBreak = atts.getValue(getUri(), "border-break-width");
    if (borderWidthBreak != null)
    {
      factory.setBorderBreakWidth(ReportParserUtil.parseFloat(borderWidthBreak, getLocator()));
    }

    final String borderStyle = atts.getValue(getUri(), "border-style");
    factory.setBorderStyle(parseBorderStyle(borderStyle));
    final String borderStyleTop = atts.getValue(getUri(), "border-top-style");
    factory.setBorderTopStyle(parseBorderStyle(borderStyleTop));
    final String borderStyleLeft = atts.getValue(getUri(), "border-left-style");
    factory.setBorderLeftStyle(parseBorderStyle(borderStyleLeft));
    final String borderStyleBottom = atts.getValue(getUri(), "border-bottom-style");
    factory.setBorderBottomStyle(parseBorderStyle(borderStyleBottom));
    final String borderStyleRight = atts.getValue(getUri(), "border-right-style");
    factory.setBorderRightStyle(parseBorderStyle(borderStyleRight));
    final String borderStyleBreak = atts.getValue(getUri(), "border-break-style");
    factory.setBorderBreakStyle(parseBorderStyle(borderStyleBreak));


    factory.setHorizontalAlignment(ReportParserUtil.parseHorizontalElementAlignment
        (atts.getValue(getUri(), AbstractElementReadHandler.ALIGNMENT_ATT), getLocator()));
    factory.setVerticalAlignment(ReportParserUtil.parseVerticalElementAlignment
        (atts.getValue(getUri(), AbstractElementReadHandler.VALIGNMENT_ATT), getLocator()));

    final String borderRadiusWidth = atts.getValue(getUri(), "border-radius-width");
    if (borderRadiusWidth != null)
    {
      factory.setBorderRadiusWidth(ReportParserUtil.parseFloat(borderRadiusWidth, getLocator()));
    }
    final String borderRadiusHeight = atts.getValue(getUri(), "border-radius-height");
    if (borderRadiusHeight != null)
    {
      factory.setBorderRadiusHeight(ReportParserUtil.parseFloat(borderRadiusHeight, getLocator()));
    }
    final String borderTopLeftRadiusWidth = atts.getValue(getUri(), "border-top-left-radius-width");
    if (borderTopLeftRadiusWidth != null)
    {
      factory.setBorderTopLeftRadiusWidth(ReportParserUtil.parseFloat(borderTopLeftRadiusWidth, getLocator()));
    }
    final String borderTopLeftRadiusHeight = atts.getValue(getUri(), "border-top-left-radius-height");
    if (borderTopLeftRadiusHeight != null)
    {
      factory.setBorderTopLeftRadiusHeight(ReportParserUtil.parseFloat(borderTopLeftRadiusHeight, getLocator()));
    }
    final String borderTopRightRadiusWidth = atts.getValue(getUri(), "border-top-right-radius-width");
    if (borderTopRightRadiusWidth != null)
    {
      factory.setBorderTopRightRadiusWidth(ReportParserUtil.parseFloat(borderTopRightRadiusWidth, getLocator()));
    }
    final String borderTopRightRadiusHeight = atts.getValue(getUri(), "border-top-right-radius-height");
    if (borderTopRightRadiusHeight != null)
    {
      factory.setBorderTopRightRadiusHeight(ReportParserUtil.parseFloat(borderTopRightRadiusHeight, getLocator()));
    }
    final String borderBottomLeftRadiusWidth = atts.getValue(getUri(), "border-bottom-left-radius-width");
    if (borderBottomLeftRadiusWidth != null)
    {
      factory.setBorderBottomLeftRadiusWidth(ReportParserUtil.parseFloat(borderBottomLeftRadiusWidth, getLocator()));
    }
    final String borderBottomLeftRadiusHeight = atts.getValue(getUri(), "border-bottom-left-radius-height");
    if (borderBottomLeftRadiusHeight != null)
    {
      factory.setBorderBottomLeftRadiusHeight(ReportParserUtil.parseFloat(borderBottomLeftRadiusHeight, getLocator()));
    }
    final String borderBottomRightRadiusWidth = atts.getValue(getUri(), "border-bottom-right-radius-width");
    if (borderBottomRightRadiusWidth != null)
    {
      factory.setBorderBottomRightRadiusWidth(ReportParserUtil.parseFloat(borderBottomRightRadiusWidth, getLocator()));
    }
    final String borderBottomRightRadiusHeight = atts.getValue(getUri(), "border-bottom-right-radius-height");
    if (borderBottomRightRadiusHeight != null)
    {
      factory.setBorderBottomRightRadiusHeight(ReportParserUtil.parseFloat(borderBottomRightRadiusHeight,
          getLocator()));
    }
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.elementfactory.ElementFactory

   * @throws org.xml.sax.SAXException if there is a parsing error.
   */
  protected void startParsing(final PropertyAttributes atts)
      throws SAXException
  {
    final ElementFactory factory = getElementFactory();
    factory.setName(atts.getValue(getUri(), AbstractElementReadHandler.NAME_ATT));
    styleClass = atts.getValue(getUri(), AbstractElementReadHandler.STYLE_CLASS_ATT);

    final Color color = ReportParserUtil.parseColor(atts.getValue(getUri(), AbstractElementReadHandler.COLOR_ATT),
        null);
    factory.setColor(color);

    final String posX = atts.getValue(getUri(), "x");
    if (posX != null)
    {
      factory.setX(ReportParserUtil.parseRelativeFloat
          (posX, "Attribute 'x' not valid", getLocator()));
    }

    final String posY = atts.getValue(getUri(), "y");
    if (posY != null)
    {
      factory.setY(ReportParserUtil.parseRelativeFloat
          (posY, "Attribute 'y' not valid", getLocator()));
    }

    final String width = atts.getValue(getUri(), "width");
    if (width != null)
    {
      factory.setMinimumWidth(ReportParserUtil.parseRelativeFloat
          (width, "Attribute 'width' not valid", getLocator()));
    }

    final String height = atts.getValue(getUri(), "height");
    if (height != null)
    {
      factory.setMinimumHeight(ReportParserUtil.parseRelativeFloat
          (height, "Attribute 'height' not valid", getLocator()));
    }

    final String useMinChunkWidth = atts.getValue(getUri(), "use-min-chunkwidth");
    if (useMinChunkWidth != null)
    {
      factory.setUseMinChunkWidth(ReportParserUtil.parseBoolean(useMinChunkWidth, getLocator()));
    }

    final String dynamicValue = atts.getValue(getUri(), AbstractElementReadHandler.DYNAMIC_ATT);
    if (dynamicValue != null)
    {
      final Boolean dynamic = ParserUtil.parseBoolean(dynamicValue, getLocator());
      factory.setDynamicHeight(dynamic);
    }

    final String visibleValue = atts.getValue(getUri(), AbstractElementReadHandler.VISIBLE_ATT);
    if (visibleValue != null)
    {
      final boolean value = ParserUtil.parseBoolean(visibleValue, true);
      factory.setVisible((value) ? Boolean.TRUE : Boolean.FALSE);
    }

    final String href = atts.getValue(getUri(), AbstractElementReadHandler.HREF_ATT);
    if (href != null)
    {
      factory.setHRefTarget(href);
    }

    final String hrefWindow = atts.getValue(getUri(), AbstractElementReadHandler.HREF_WINDOW_ATT);
    if (hrefWindow != null)
    {
      factory.setHRefWindow(hrefWindow);
    }
    final String hrefTitle = atts.getValue(getUri(), "href-title");
    if (hrefTitle != null)
    {
      factory.setHRefTitle(hrefTitle);
    }

    final String avoidBreaks = atts.getValue(getUri(), "avoid-pagebreaks");
    if (avoidBreaks != null)
    {
      final boolean value = ParserUtil.parseBoolean(avoidBreaks, true);
      factory.setAvoidPagebreaks((value) ? Boolean.TRUE : Boolean.FALSE);
    }

    final String overflowX = atts.getValue(getUri(), "overflow-x");
    if (overflowX != null)
    {
      final boolean value = ParserUtil.parseBoolean(overflowX, false);
      factory.setOverflowX((value) ? Boolean.TRUE : Boolean.FALSE);
    }

    final String overflowY = atts.getValue(getUri(), "overflow-y");
    if (overflowY != null)
    {
      final boolean value = ParserUtil.parseBoolean(overflowY, false);
      factory.setOverflowY((value) ? Boolean.TRUE : Boolean.FALSE);
    }


    final String widows = atts.getValue(getUri(), "widows");
    if (widows != null)
    {
      factory.setWidows(ReportParserUtil.parseInteger(widows, getLocator()));
    }

    final String orphans = atts.getValue(getUri(), "orpans");
    if (orphans != null)
    {
      factory.setOrphans(ReportParserUtil.parseInteger(orphans, getLocator()));
    }

    final String padding = atts.getValue(getUri(), "padding");
    if (padding != null)
    {
      factory.setPadding(ReportParserUtil.parseFloat(padding, getLocator()));
    }

    final String paddingTop = atts.getValue(getUri(), "padding-top");
    if (paddingTop != null)
    {
      factory.setPaddingTop(ReportParserUtil.parseFloat(paddingTop, getLocator()));
    }

    final String paddingLeft = atts.getValue(getUri(), "padding-left");
    if (paddingLeft != null)
    {
      factory.setPaddingLeft(ReportParserUtil.parseFloat(paddingLeft, getLocator()));
    }

    final String paddingBottom = atts.getValue(getUri(), "padding-bottom");
    if (paddingBottom != null)
    {
      factory.setPaddingBottom(ReportParserUtil.parseFloat(paddingBottom, getLocator()));
    }

    final String paddingRight = atts.getValue(getUri(), "padding-right");
    if (paddingRight != null)
    {
      factory.setPaddingRight(ReportParserUtil.parseFloat(paddingRight, getLocator()));
    }

    final String attr = atts.getValue(getUri(), "background-color");
    factory.setBackgroundColor(ReportParserUtil.parseColor(attr, null));

    final String borderColor = atts.getValue(getUri(), "border-color");
    factory.setBorderColor(ReportParserUtil.parseColor(borderColor, null));
    final String borderColorTop = atts.getValue(getUri(), "border-top-color");
    factory.setBorderTopColor(ReportParserUtil.parseColor(borderColorTop, null));
    final String borderColorLeft = atts.getValue(getUri(), "border-left-color");
    factory.setBorderLeftColor(ReportParserUtil.parseColor(borderColorLeft, null));
    final String borderColorBottom = atts.getValue(getUri(), "border-bottom-color");
    factory.setBorderBottomColor(ReportParserUtil.parseColor(borderColorBottom, null));
    final String borderColorRight = atts.getValue(getUri(), "border-right-color");
    factory.setBorderRightColor(ReportParserUtil.parseColor(borderColorRight, null));
    final String borderColorBreak = atts.getValue(getUri(), "border-break-color");
    factory.setBorderBreakColor(ReportParserUtil.parseColor(borderColorBreak, null));

    final String borderWidth = atts.getValue(getUri(), "border-width");
    if (borderWidth != null)
    {
      factory.setBorderWidth(ReportParserUtil.parseFloat(borderWidth, getLocator()));
    }
    final String borderWidthTop = atts.getValue(getUri(), "border-top-width");
    if (borderWidthTop != null)
    {
      factory.setBorderTopWidth(ReportParserUtil.parseFloat(borderWidthTop, getLocator()));
    }

    final String borderWidthLeft = atts.getValue(getUri(), "border-left-width");
    if (borderWidthLeft != null)
    {
      factory.setBorderLeftWidth(ReportParserUtil.parseFloat(borderWidthLeft, getLocator()));
    }

    final String borderWidthBottom = atts.getValue(getUri(), "border-bottom-width");
    if (borderWidthBottom != null)
    {
      factory.setBorderBottomWidth(ReportParserUtil.parseFloat(borderWidthBottom, getLocator()));
    }

    final String borderWidthRight = atts.getValue(getUri(), "border-right-width");
    if (borderWidthRight != null)
    {
      factory.setBorderRightWidth(ReportParserUtil.parseFloat(borderWidthRight, getLocator()));
    }
    final String borderWidthBreak = atts.getValue(getUri(), "border-break-width");
    if (borderWidthBreak != null)
    {
      factory.setBorderBreakWidth(ReportParserUtil.parseFloat(borderWidthBreak, getLocator()));
    }

    final String borderStyle = atts.getValue(getUri(), "border-style");
    factory.setBorderStyle(parseBorderStyle(borderStyle));
    final String borderStyleTop = atts.getValue(getUri(), "border-top-style");
    factory.setBorderTopStyle(parseBorderStyle(borderStyleTop));
    final String borderStyleLeft = atts.getValue(getUri(), "border-left-style");
    factory.setBorderLeftStyle(parseBorderStyle(borderStyleLeft));
    final String borderStyleBottom = atts.getValue(getUri(), "border-bottom-style");
    factory.setBorderBottomStyle(parseBorderStyle(borderStyleBottom));
    final String borderStyleRight = atts.getValue(getUri(), "border-right-style");
    factory.setBorderRightStyle(parseBorderStyle(borderStyleRight));
    final String borderStyleBreak = atts.getValue(getUri(), "border-break-style");
    factory.setBorderBreakStyle(parseBorderStyle(borderStyleBreak));


    factory.setHorizontalAlignment(ReportParserUtil.parseHorizontalElementAlignment
        (atts.getValue(getUri(), AbstractElementReadHandler.ALIGNMENT_ATT), getLocator()));
    factory.setVerticalAlignment(ReportParserUtil.parseVerticalElementAlignment
        (atts.getValue(getUri(), AbstractElementReadHandler.VALIGNMENT_ATT), getLocator()));

    final String borderRadiusWidth = atts.getValue(getUri(), "border-radius-width");
    if (borderRadiusWidth != null)
    {
      factory.setBorderRadiusWidth(ReportParserUtil.parseFloat(borderRadiusWidth, getLocator()));
    }
    final String borderRadiusHeight = atts.getValue(getUri(), "border-radius-height");
    if (borderRadiusHeight != null)
    {
      factory.setBorderRadiusHeight(ReportParserUtil.parseFloat(borderRadiusHeight, getLocator()));
    }
    final String borderTopLeftRadiusWidth = atts.getValue(getUri(), "border-top-left-radius-width");
    if (borderTopLeftRadiusWidth != null)
    {
      factory.setBorderTopLeftRadiusWidth(ReportParserUtil.parseFloat(borderTopLeftRadiusWidth, getLocator()));
    }
    final String borderTopLeftRadiusHeight = atts.getValue(getUri(), "border-top-left-radius-height");
    if (borderTopLeftRadiusHeight != null)
    {
      factory.setBorderTopLeftRadiusHeight(ReportParserUtil.parseFloat(borderTopLeftRadiusHeight, getLocator()));
    }
    final String borderTopRightRadiusWidth = atts.getValue(getUri(), "border-top-right-radius-width");
    if (borderTopRightRadiusWidth != null)
    {
      factory.setBorderTopRightRadiusWidth(ReportParserUtil.parseFloat(borderTopRightRadiusWidth, getLocator()));
    }
    final String borderTopRightRadiusHeight = atts.getValue(getUri(), "border-top-right-radius-height");
    if (borderTopRightRadiusHeight != null)
    {
      factory.setBorderTopRightRadiusHeight(ReportParserUtil.parseFloat(borderTopRightRadiusHeight, getLocator()));
    }
    final String borderBottomLeftRadiusWidth = atts.getValue(getUri(), "border-bottom-left-radius-width");
    if (borderBottomLeftRadiusWidth != null)
    {
      factory.setBorderBottomLeftRadiusWidth(ReportParserUtil.parseFloat(borderBottomLeftRadiusWidth, getLocator()));
    }
    final String borderBottomLeftRadiusHeight = atts.getValue(getUri(), "border-bottom-left-radius-height");
    if (borderBottomLeftRadiusHeight != null)
    {
      factory.setBorderBottomLeftRadiusHeight(ReportParserUtil.parseFloat(borderBottomLeftRadiusHeight, getLocator()));
    }
    final String borderBottomRightRadiusWidth = atts.getValue(getUri(), "border-bottom-right-radius-width");
    if (borderBottomRightRadiusWidth != null)
    {
      factory.setBorderBottomRightRadiusWidth(ReportParserUtil.parseFloat(borderBottomRightRadiusWidth, getLocator()));
    }
    final String borderBottomRightRadiusHeight = atts.getValue(getUri(), "border-bottom-right-radius-height");
    if (borderBottomRightRadiusHeight != null)
    {
      factory.setBorderBottomRightRadiusHeight(ReportParserUtil.parseFloat(borderBottomRightRadiusHeight,
          getLocator()));
    }
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.elements.ElementFactory

    }
    final ElementFactoryCollector fc =
        (ElementFactoryCollector) getRootHandler().getHelperObject
            (ReportDefinitionReadHandler.ELEMENT_FACTORY_KEY);

    final ElementFactory factory = (ElementFactory)
        ObjectUtilities.loadAndInstantiate(className, getClass(), ElementFactory.class);
    fc.addFactory(factory);
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.elements.ElementFactory

    }
    final ElementFactoryCollector fc =
        (ElementFactoryCollector) getRootHandler().getHelperObject
            (ReportDefinitionReadHandler.ELEMENT_FACTORY_KEY);

    final ElementFactory factory = (ElementFactory)
        ObjectUtilities.loadAndInstantiate(className, getClass(), ElementFactory.class);
    fc.addFactory(factory);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.