org.gscg.gameleader.animation2D
Class SingleImageDataElement

java.lang.Object
  extended byorg.gscg.gameleader.animation2D.ImageDataElement
      extended byorg.gscg.gameleader.animation2D.SingleImageDataElement
All Implemented Interfaces:
ImageDataInterface, java.io.Serializable

public class SingleImageDataElement
extends ImageDataElement

The SingleImageDataElement contains the data for a single image renderable which can be displayed on a remote animation panel.

Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information www.simulation.tudelft.nl . The source code and binary code of this software is proprietary information of Delft University of Technology.

Since:
1.0
Version:
$Revision: 1.1 $ $Date: 2005/06/16 12:34:03 $
Author:
Stijn-Pieter van Houten
See Also:
Serialized Form

Constructor Summary
SingleImageDataElement(java.lang.String type, java.lang.String key, java.lang.String image, nl.tudelft.simulation.language.d3.DirectedPoint location, java.awt.Dimension dimension, boolean flip, short orientation, boolean rotate, boolean scale, boolean translate)
          constructs a new ImageDataElement
 
Method Summary
 java.awt.Dimension getDimension()
           
 short getOrientation()
           
 boolean isFlip()
           
 boolean isRotate()
           
 boolean isScale()
           
 boolean isTranslate()
           
 
Methods inherited from class org.gscg.gameleader.animation2D.ImageDataElement
getImage, getKey, getPoint, getType, setPoints, setPoints
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleImageDataElement

public SingleImageDataElement(java.lang.String type,
                              java.lang.String key,
                              java.lang.String image,
                              nl.tudelft.simulation.language.d3.DirectedPoint location,
                              java.awt.Dimension dimension,
                              boolean flip,
                              short orientation,
                              boolean rotate,
                              boolean scale,
                              boolean translate)
constructs a new ImageDataElement

Parameters:
type - the type of the image
key - the key
image - the name of the image
location - the location
dimension - the dimension of the image
flip - boolean for flip
orientation - the orientation
rotate - boolean for rotation
scale - boolean for scale
translate - boolean for translation
Method Detail

getDimension

public java.awt.Dimension getDimension()
Returns:
returns the dimension of the image

isFlip

public boolean isFlip()
Returns:
returns the boolean for flipping

getOrientation

public short getOrientation()
Returns:
returns the orientation

isRotate

public boolean isRotate()
Returns:
returns the boolean for rotating

isScale

public boolean isScale()
Returns:
returns the boolean for scaling

isTranslate

public boolean isTranslate()
Returns:
returns the boolean for translation


Copyright © 2002-2005 Delft University of Technology, the Netherlands. All Rights Reserved.