NetCharts Pro

netcharts.pro.common.image.raster
Class NFRasterImageOutput

java.lang.Object
  extended by netcharts.pro.common.image.NFImageOutput
      extended by netcharts.pro.common.image.raster.NFRasterImageOutput
All Implemented Interfaces:
NFImageExtension
Direct Known Subclasses:
NFIndexedRasterImageOutput, NFJPEGImageOutput, NFPNGImageOutput, NFTIFFImageOutput, NFWBMPImageOutput

public class NFRasterImageOutput
extends NFImageOutput

Base implementation for raster based image output.


Constructor Summary
NFRasterImageOutput(java.lang.String mimeType)
          Constructs a NFRasterImageOutput instance specifying the MIME type.
 
Method Summary
 NFImageParams getImageParamsInstance()
          Returns a default NFImageParams instance specific to this image generation extension.
 NFServerGeneratedImage getServerGeneratedImage(NFGraph graph, NFImageParams properties)
          Generates an image of the given chart using the specified image generation parameters.
 
Methods inherited from class netcharts.pro.common.image.NFImageOutput
getMimeType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NFRasterImageOutput

public NFRasterImageOutput(java.lang.String mimeType)
Constructs a NFRasterImageOutput instance specifying the MIME type.

Parameters:
mimeType - The MIME type of the output.
Method Detail

getServerGeneratedImage

public NFServerGeneratedImage getServerGeneratedImage(NFGraph graph,
                                                      NFImageParams properties)
                                               throws java.lang.Exception
Description copied from class: NFImageOutput
Generates an image of the given chart using the specified image generation parameters.

Specified by:
getServerGeneratedImage in interface NFImageExtension
Overrides:
getServerGeneratedImage in class NFImageOutput
Parameters:
graph - The chart instance to render to an image.
properties - The parameters of the image generation.
Returns:
NFServerGeneratedImage instance containing the image and related metadata.
Throws:
java.lang.Exception - If there was an exception generating the image

getImageParamsInstance

public NFImageParams getImageParamsInstance()
Description copied from interface: NFImageExtension
Returns a default NFImageParams instance specific to this image generation extension.

Specified by:
getImageParamsInstance in interface NFImageExtension
Specified by:
getImageParamsInstance in class NFImageOutput
Returns:
NFImageParams instance containing default image generation parameters.

NetCharts Pro


Visual Mining, Inc.
2099 Gaither Rd.
Suite 220
Rockville, MD 20850
800.308.0731
301.947.8293 FAX

Copyright © Visual Mining, Inc. 1996 - 2011
All Rights Reserved.

NetCharts Pro TM is a registered trademark of Visual Mining, Inc. Other brands and their products are trademarks of their respective holders.

Last Modified: Jun 28, 2011