Package org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.base

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.base.ObjectFactoryException


  public void setParameterFromObject(final Object o)
      throws ObjectFactoryException
  {
    if (getObjectClass().isAssignableFrom(o.getClass()) == false)
    {
      throw new ObjectFactoryException("Class is not assignable");
    }

    final Shape s = (Shape) o;
    final PathIterator pi = s.getPathIterator(AffineTransform.getTranslateInstance(0, 0));
    if (pi.getWindingRule() == PathIterator.WIND_EVEN_ODD)
View Full Code Here


    {
      setParameter("value", "use-script");
    }
    else
    {
      throw new ObjectFactoryException("Invalid value specified for ElementAlignment");
    }
  }
View Full Code Here

    {
      setParameter("value", BoxSizing.CONTENT_BOX.toString());
    }
    else
    {
      throw new ObjectFactoryException("Invalid value specified for ElementAlignment");
    }
  }
View Full Code Here

    {
      setParameter("value", "preserve-breaks");
    }
    else
    {
      throw new ObjectFactoryException("Invalid value specified for WhitespaceCollapse");
    }
  }
View Full Code Here

  public void setParameterFromObject(final Object o)
      throws ObjectFactoryException
  {
    if ((o instanceof PathIteratorSegment) == false)
    {
      throw new ObjectFactoryException("The given object is no PathIteratorSegment.");
    }

    final PathIteratorSegment seg = (PathIteratorSegment) o;
    setParameter("segmentType", createSegmentType(seg.getSegmentType()));
    setParameter("x1", new Float(seg.getX1()));
View Full Code Here

    {
      setParameter("value", "auto");
    }
    else
    {
      throw new ObjectFactoryException("Invalid value specified for FontSmooth");
    }
  }
View Full Code Here

    {
      setParameter("value", "none");
    }
    else
    {
      throw new ObjectFactoryException("Invalid value specified for ElementAlignment");
    }
  }
View Full Code Here

    {
      setParameter("value", "wave");
    }
    else
    {
      throw new ObjectFactoryException("Invalid value specified for ElementAlignment");
    }
  }
View Full Code Here

      throws ObjectFactoryException
  {
    final Integer i = (Integer) getParameter(name);
    if (i == null)
    {
      throw new ObjectFactoryException("Parameter " + name + " is not set");
    }
    return i.intValue();
  }
View Full Code Here

  public void setParameterFromObject(final Object o)
      throws ObjectFactoryException
  {
    if ((o instanceof FontDefinition) == false)
    {
      throw new ObjectFactoryException("The given object is no FontDefinition.");
    }

    final FontDefinition fdef = (FontDefinition) o;
    setParameter(FontDefinitionObjectDescription.FONT_ENCODING, fdef.getFontEncoding(null));
    setParameter(FontDefinitionObjectDescription.FONT_NAME, fdef.getFontName());
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.base.ObjectFactoryException

Copyright © 2018 www.massapicom. 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.