MetaDone
metadone.client.grasyla2.visuallibrary.widgets.backgrounds.SVGImageWidget Class Reference
Inheritance diagram for metadone.client.grasyla2.visuallibrary.widgets.backgrounds.SVGImageWidget:
Collaboration diagram for metadone.client.grasyla2.visuallibrary.widgets.backgrounds.SVGImageWidget:

List of all members.

Classes

class  ImageRasterizer

Public Member Functions

 SVGImageWidget (Scene scene, TranscoderInput input) throws TranscoderException
Image getImage ()
Dimension getImageSize ()

Static Public Member Functions

static BufferedImage createImage (TranscoderInput input) throws TranscoderException
static BufferedImage createImage (TranscoderInput input, Map<?,?> hints) throws TranscoderException

Protected Member Functions

final void generateImage ()
void generateImage (int minWidth, int minHeight, float reductionRatio)
Image getImage (int width, int height)
Rectangle calculateClientArea ()
void paintWidget ()

Static Protected Attributes

static final float DEFAULT_REDUCTION_RATIO = 0.25f

Private Attributes

final TranscoderInput input
Image image = null

Detailed Description

Draws an SVG image as a widget background.

Author:
kma
See also:
createImage(TranscoderInput)

Constructor & Destructor Documentation

metadone.client.grasyla2.visuallibrary.widgets.backgrounds.SVGImageWidget.SVGImageWidget ( Scene  scene,
TranscoderInput  input 
) throws TranscoderException

Member Function Documentation

Rectangle metadone.client.grasyla2.visuallibrary.widgets.backgrounds.SVGImageWidget.calculateClientArea ( ) [protected]
static BufferedImage metadone.client.grasyla2.visuallibrary.widgets.backgrounds.SVGImageWidget.createImage ( TranscoderInput  input) throws TranscoderException [static]

Transforms a TranscoderInput into a BufferedImage.

Parameters:
inputThe input to transform
Returns:
A buffered image
Exceptions:
TranscoderExceptionwhen an error occurred while transcoding
NullPointerExceptionwhen input is null

References metadone.client.grasyla2.visuallibrary.widgets.backgrounds.SVGImageWidget.input.

Referenced by metadone.client.grasyla2.visuallibrary.widgets.backgrounds.SVGImageWidget.generateImage(), and metadone.client.grasyla2.visuallibrary.widgets.W_SVG.W_SVG().

static BufferedImage metadone.client.grasyla2.visuallibrary.widgets.backgrounds.SVGImageWidget.createImage ( TranscoderInput  input,
Map<?,?>  hints 
) throws TranscoderException [static]

Transforms a TranscoderInput into a BufferedImage.

Parameters:
inputThe input to transform
Returns:
A buffered image
Exceptions:
TranscoderExceptionwhen an error occurred while transcoding
NullPointerExceptionwhen input is null

References metadone.client.grasyla2.visuallibrary.widgets.backgrounds.SVGImageWidget.ImageRasterizer.getLastImage(), and metadone.client.grasyla2.visuallibrary.widgets.backgrounds.SVGImageWidget.input.

void metadone.client.grasyla2.visuallibrary.widgets.backgrounds.SVGImageWidget.generateImage ( int  minWidth,
int  minHeight,
float  reductionRatio 
) [protected]
Image metadone.client.grasyla2.visuallibrary.widgets.backgrounds.SVGImageWidget.getImage ( int  width,
int  height 
) [protected]

Gets the image with a specified width and height.

The current image is regenerated to match the given size.

Parameters:
widthThe new width
heightThe new height
Returns:
The image

References metadone.client.grasyla2.visuallibrary.widgets.backgrounds.SVGImageWidget.DEFAULT_REDUCTION_RATIO, metadone.client.grasyla2.visuallibrary.widgets.backgrounds.SVGImageWidget.generateImage(), and metadone.client.grasyla2.visuallibrary.widgets.backgrounds.SVGImageWidget.image.

Image metadone.client.grasyla2.visuallibrary.widgets.backgrounds.SVGImageWidget.getImage ( )

Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations