SimJava 2.0.1

eduni.simanim
Class Anim_entity

Object
  extended by Anim_entity

public class Anim_entity
extends Object

An animation entity, used to store display information about an entity for the animation.

Version:
1.0, 4 September
Author:
Ross McNab

Constructor Summary
Anim_entity(String name, String base_img)
          This constuctor should not be used directly, use the extended constructor in Sim_entity instead.
 
Method Summary
 void add_param(Anim_param param)
          This method should not be used directly.
 void add_port(Anim_port port)
          This method should not be used directly.
(package private)  void draw_messages(Graphics g)
           
(package private)  void draw(Graphics g)
           
(package private)  Anim_port find_port(String port_name)
           
(package private)  String get_bar_string()
           
(package private)  Point get_end_position()
           
(package private)  String get_name()
           
(package private)  Point get_position()
           
(package private)  Dimension get_size()
           
 boolean is_invisible()
          This method should not be used directly.
 void set_invisible(boolean b)
          This method should not be used directly.
(package private)  void set_params(String param_string)
           
 void set_position(int x, int y)
          This method should not be used directly.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Anim_entity

public Anim_entity(String name,
                   String base_img)
This constuctor should not be used directly, use the extended constructor in Sim_entity instead.

Method Detail

add_port

public void add_port(Anim_port port)
This method should not be used directly.


add_param

public void add_param(Anim_param param)
This method should not be used directly.


set_position

public void set_position(int x,
                         int y)
This method should not be used directly.


set_params

void set_params(String param_string)

get_bar_string

String get_bar_string()

draw_messages

void draw_messages(Graphics g)

draw

void draw(Graphics g)

get_name

String get_name()

get_size

Dimension get_size()

get_position

Point get_position()

get_end_position

Point get_end_position()

set_invisible

public void set_invisible(boolean b)
This method should not be used directly.


is_invisible

public boolean is_invisible()
This method should not be used directly.


find_port

Anim_port find_port(String port_name)

SimJava 2.0.1

The University of Edinburgh, 2009