org.gscg.gameleader.animation2D
Class ImageDataElement

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

public class ImageDataElement
extends java.lang.Object
implements ImageDataInterface

The ImageDataElement contains data in order to facilitate displaying images 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.8
Version:
$Revision: 1.1 $ $Date: 2005/06/16 12:34:02 $
Author:
Stijn-Pieter van Houten
See Also:
Serialized Form

Constructor Summary
ImageDataElement(java.lang.String type, java.lang.String key, nl.tudelft.simulation.language.d3.DirectedPoint location, java.lang.String image)
          constructs a new ImageDataElement
 
Method Summary
 java.lang.String getImage()
          returns the url of the image as a String
 java.lang.String getKey()
          method get key
 double[] getPoint()
           
 java.lang.String getType()
          Method getType returns a String reflecting the type of image, e.g.
 void setPoints(nl.tudelft.simulation.language.d3.DirectedPoint point)
          sets the directed point
 void setPoints(double[] points)
          sets the directed point
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageDataElement

public ImageDataElement(java.lang.String type,
                        java.lang.String key,
                        nl.tudelft.simulation.language.d3.DirectedPoint location,
                        java.lang.String image)
constructs a new ImageDataElement

Parameters:
type - the type of the image
key - the key
location - the location
image - the url of the image as a string
Method Detail

getPoint

public double[] getPoint()
Specified by:
getPoint in interface ImageDataInterface
Returns:
returns an array of doubles reflecting the point
See Also:
ImageDataInterface.getPoint()

setPoints

public void setPoints(double[] points)
Description copied from interface: ImageDataInterface
sets the directed point

Specified by:
setPoints in interface ImageDataInterface
Parameters:
points - the points reflecting the directed point
See Also:
ImageDataInterface.setPoints(double[])

setPoints

public void setPoints(nl.tudelft.simulation.language.d3.DirectedPoint point)
sets the directed point

Parameters:
point - the directed point

getKey

public java.lang.String getKey()
Description copied from interface: ImageDataInterface
method get key

Specified by:
getKey in interface ImageDataInterface
Returns:
returns the key
See Also:
ImageDataInterface.getKey()

getType

public java.lang.String getType()
Description copied from interface: ImageDataInterface
Method getType returns a String reflecting the type of image, e.g. GisActorAnimation or SingleImageRenderable

Specified by:
getType in interface ImageDataInterface
Returns:
returns the type
See Also:
ImageDataInterface.getType()

getImage

public java.lang.String getImage()
Description copied from interface: ImageDataInterface
returns the url of the image as a String

Specified by:
getImage in interface ImageDataInterface
Returns:
returns the url of the image as a String
See Also:
ImageDataInterface.getImage()


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