MetaDone
metadone.client.grasyla2.base.ImageEngine Class Reference
Inheritance diagram for metadone.client.grasyla2.base.ImageEngine:
Collaboration diagram for metadone.client.grasyla2.base.ImageEngine:

List of all members.

Classes

class  ImageLoader
class  ResizeAttributeHandler

Public Member Functions

 ImageEngine (GrasylaContext context, ConcreteObject expression, Engine parent) throws BadPreCondition

Protected Member Functions

boolean isNativeAttribute (String name)
Component<?extends Image > evaluateComponent (BootstrapGrasyla grasyla) throws BadPreCondition
void disposeInternal ()
void notifyChildChanged (Engine child, ChildComponent comp)

Package Attributes

int height

Private Member Functions

Component<?extends Image > newOriginalImageComponent ()

Private Attributes

BufferedImage image_original
int width

Static Private Attributes

static final String ATTR_PATH = "path"
static final String ATTR_RESOURCE = "resource"

Detailed Description

Creates an image.

Attributes
  • height: the height of the image
  • width: the width of the image
  • path (native): the path to the image (may be deprecated in the future)
  • resource (native): the resource name of the image or an URL

`path` and `resource` are mutually exclusive, they indicate from where the image will be loaded.

Contents

none

Result
An Image that is optionally resized to the given width and height.
Author:
kma
See also:
ImageLoader

Constructor & Destructor Documentation

metadone.client.grasyla2.base.ImageEngine.ImageEngine ( GrasylaContext  context,
ConcreteObject  expression,
Engine  parent 
) throws BadPreCondition

Initializes this engine.

Parameters:
contextThe context
expressionThe expression
parentThe parent or null
Exceptions:
BadPreCondition

Member Function Documentation

void metadone.client.grasyla2.base.ImageEngine.disposeInternal ( ) [protected]
boolean metadone.client.grasyla2.base.ImageEngine.isNativeAttribute ( String  name) [protected]
Component<? extends Image> metadone.client.grasyla2.base.ImageEngine.newOriginalImageComponent ( ) [private]

Member Data Documentation


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