View Javadoc

1   /*
2    * @(#) GisActorImageDataElement.java Dec 09, 2004
3    * 
4   * 
5    * Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX
6    * Delft, the Netherlands. All rights reserved.
7    * 
8    * See for project information <a href="http://www.simulation.tudelft.nl/">
9    * www.simulation.tudelft.nl </a>.
10   * 
11   * The source code and binary code of this software is proprietary information
12   * of Delft University of Technology.
13   */
14  package org.gscg.gameleader.animation2D;
15  
16  import java.awt.Dimension;
17  
18  import nl.tudelft.simulation.language.d3.DirectedPoint;
19  
20  
21  /***
22   * The GisActorImageDataElement contains the data for an actor image which can
23   * be displayed on a remote animation panel.
24   * <p>
25   * 
26   * Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX
27   * Delft, the Netherlands. All rights reserved.
28   * 
29   * See for project information <a href="http://www.simulation.tudelft.nl/">
30   * www.simulation.tudelft.nl </a>.
31   * 
32   * The source code and binary code of this software is proprietary information
33   * of Delft University of Technology.
34   * 
35   * @author <a
36   *         href="http://www.tbm.tudelft.nl/webstaf/stijnh/index.htm">Stijn-Pieter
37   *         van Houten </a>
38   * @version $Revision: 1.1 $ $Date: 2005/06/16 12:34:02 $
39   * @since 1.0.8
40   */
41  public class GisActorImageDataElement extends ImageDataElement
42  {
43  	/*** the serial version uid */
44  	private static final long serialVersionUID = 11L;
45  
46  	/*** the dimension of the image */
47  	private Dimension dimension = null;
48  
49  	/*** the actor class name */
50  	private String actorClassName = null;
51  
52  	/*** the name of the actor */
53  	private String actorName = null;
54  
55  	/***
56  	 * constructs a new GisActorImageDataElement
57  	 * 
58  	 * @param type the type of the image
59  	 * @param key the key
60  	 * @param image the name of the image
61  	 * @param location the location
62  	 * @param dimension the dimension of the image
63  	 * @param actorClassName the name of the actor class
64  	 * @param actorName the name of the actor
65  	 */
66  	public GisActorImageDataElement(final String type, final String key,
67  			final String image, final DirectedPoint location,
68  			final Dimension dimension, final String actorClassName,
69  			final String actorName)
70  	{
71  		super(type, key, location, image);
72  		this.dimension = dimension;
73  		this.actorClassName = actorClassName;
74  		this.actorName = actorName;
75  	}
76  
77  	/***
78  	 * @return Returns the actor class name
79  	 */
80  	public String getActorClassName()
81  	{
82  		return this.actorClassName;
83  	}
84  
85  	/***
86  	 * @return Returns the name of the actor
87  	 */
88  	public String getActorName()
89  	{
90  		return this.actorName;
91  	}
92  
93  	/***
94  	 * @return returns the dimension of the image
95  	 */
96  	public Dimension getDimension()
97  	{
98  		return this.dimension;
99  	}
100 }