NetCharts Pro

netcharts.pro.common.image
Class NFImageOutput

java.lang.Object
  extended by netcharts.pro.common.image.NFImageOutput
All Implemented Interfaces:
NFImageExtension
Direct Known Subclasses:
NFPDFImageOutput, NFRasterImageOutput, NFSVGImageOutput

public abstract class NFImageOutput
extends java.lang.Object
implements NFImageExtension

Base implementation for image rendering.


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

Method Detail

getMimeType

public java.lang.String getMimeType()
Returns the MIME type of the image generation implementation.

Returns:
String containing the MIME type of the image generation implementation.

getServerGeneratedImage

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

Specified by:
getServerGeneratedImage in interface NFImageExtension
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 abstract NFImageParams getImageParamsInstance()
Description copied from interface: NFImageExtension
Returns a default NFImageParams instance specific to this image generation extension.

Specified by:
getImageParamsInstance in interface NFImageExtension
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