Package org.apache.myfaces.trinidadinternal.image

Examples of org.apache.myfaces.trinidadinternal.image.ImageProviderRequest


    // Wrap up the Reader in an InputSource
    InputSource source = new InputSource(reader);
    source.setSystemId(imxPath);

    ImageProviderRequest request = null;

    try
    {
      request =
        ImageProviderRequestUtils.createImageProviderRequest(context,
                                                             parser,
                                                             source);
    }
    catch (SAXException e)
    {
      _error(_XML_DECODING_ERROR + imxPath, e);
    }
    catch (IOException e)
    {
      _error(_XML_DECODING_ERROR + imxPath, e);
    }
    finally
    {
      try { in.close(); } catch (IOException e) { _error(e); }
    }

    if (request == null)
      return null;

    // Get the ImageType from the request
    ImageType type = _getImageType(context, request);
    assert (type != null);

      // Get the properties from the request
    Map<Object, Object> properties = request.getRenderProperties(context);
    assert (properties != null);

    // Get the base name for the URI (minus the extension)
    int dotIndex = imxName.lastIndexOf('.');
    String baseName = (dotIndex == -1) ?
View Full Code Here


      getFontFamilies(context, node, inlineStyle, null);
    MutableFontProxy font = new MutableFontProxy(null, fontStyle, fontSize);

    // Now that we've got all the properties, create an ImageProviderRequest
    // with the properties.
    ImageProviderRequest request = createImageProviderRequest(context,
                                                              name,
                                                              text,
                                                              foreground,
                                                              background,
                                                              surroundingColor,
View Full Code Here

      return null;
    }

    // Get the context and request objects
    ImageContext imageContext = context.getImageContext();
    ImageProviderRequest request = _getIconRequest(context, iconKey);

    // Make the request
    ImageProviderResponse response = provider.getImage(imageContext, request);

    // Log any problems
View Full Code Here

      return null;
    }

    // Get the context and request objects
    ImageContext imageContext = context.getImageContext();
    ImageProviderRequest request = new FlippedIconRequest(
                                  context,
                                  sourceURI);

    // Make the request
    ImageProviderResponse response = provider.getImage(imageContext, request);
View Full Code Here

      return null;
    }

    // Get the context and request objects
    ImageContext imageContext = context.getImageContext();
    ImageProviderRequest request = _getIconRequest(context, iconKey);

    // Make the request
    ImageProviderResponse response = provider.getImage(imageContext, request);

    // Log any problems
View Full Code Here

      getFontFamilies(context, node, inlineStyle, null);
    MutableFontProxy font = new MutableFontProxy(null, fontStyle, fontSize);

    // Now that we've got all the properties, create an ImageProviderRequest
    // with the properties.
    ImageProviderRequest request = createImageProviderRequest(context,
                                                              name,
                                                              text,
                                                              foreground,
                                                              background,
                                                              surroundingColor,
View Full Code Here

      getFontFamilies(context, node, inlineStyle, null);
    MutableFontProxy font = new MutableFontProxy(null, fontStyle, fontSize);

    // Now that we've got all the properties, create an ImageProviderRequest
    // with the properties.
    ImageProviderRequest request = createImageProviderRequest(context,
                                                              name,
                                                              text,
                                                              foreground,
                                                              background,
                                                              surroundingColor,
View Full Code Here

      return null;
    }

    // Get the context and request objects
    ImageContext imageContext = context.getImageContext();
    ImageProviderRequest request = new FlippedIconRequest(
                                  context,
                                  sourceURI);

    // Make the request
    ImageProviderResponse response = provider.getImage(imageContext, request);
View Full Code Here

      return null;
    }

    // Get the context and request objects
    ImageContext imageContext = context.getImageContext();
    ImageProviderRequest request = _getIconRequest(context, iconKey);

    // Make the request
    ImageProviderResponse response = provider.getImage(imageContext, request);

    // Log any problems
View Full Code Here

    // Wrap up the Reader in an InputSource
    InputSource source = new InputSource(reader);
    source.setSystemId(imxPath);

    ImageProviderRequest request = null;

    try
    {
      request =
        ImageProviderRequestUtils.createImageProviderRequest(context,
                                                             parser,
                                                             source);
    }
    catch (SAXException e)
    {
      _error(_XML_DECODING_ERROR + imxPath, e);
    }
    catch (IOException e)
    {
      _error(_XML_DECODING_ERROR + imxPath, e);
    }
    finally
    {
      try { in.close(); } catch (IOException e) { _error(e); }
    }

    if (request == null)
      return null;

    // Get the ImageType from the request
    ImageType type = _getImageType(context, request);
    assert (type != null);

      // Get the properties from the request
    Map<Object, Object> properties = request.getRenderProperties(context);
    assert (properties != null);

    // Get the base name for the URI (minus the extension)
    int dotIndex = imxName.lastIndexOf('.');
    String baseName = (dotIndex == -1) ?
View Full Code Here

TOP

Related Classes of org.apache.myfaces.trinidadinternal.image.ImageProviderRequest

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.