SimJava 2.0.1

eduni.simanim
Class Anim_port

Object
  extended by Anim_port

public class Anim_port
extends Object

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

Version:
1.0, 4 September
Author:
Ross McNab

Field Summary
static int BOTTOM
          Attatch the port to the bottom side of the parent entity
static String[] enum_side
           
static int LEFT
          Attatch the port to the left side of the parent entity
static int RIGHT
          Attatch the port to the right side of the parent entity
static int TOP
          Attatch the port to the top side of the parent entity
 
Constructor Summary
Anim_port(String name, String imagename)
          This constructor should not be used directly, use the extended constructor in Sim_port instead.
 
Method Summary
 void draw_messages(Graphics g)
          This method should not be used directly
(package private)  void draw(Graphics g)
           
(package private)  Point get_link_pos()
           
(package private)  String get_name()
           
(package private)  Anim_entity get_parent()
           
(package private)  Point get_port_pos()
           
(package private)  void link_port(Anim_port link, boolean primary)
           
(package private)  void move_msg(double pos)
           
(package private) static int parseSide(String side)
           
(package private)  void set_data(String data)
           
(package private)  void set_parent(Anim_entity parent)
           
 void set_position(int side, int pos)
          This method should not be used directly.
(package private)  void update_position()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LEFT

public static final int LEFT
Attatch the port to the left side of the parent entity

See Also:
Constant Field Values

RIGHT

public static final int RIGHT
Attatch the port to the right side of the parent entity

See Also:
Constant Field Values

TOP

public static final int TOP
Attatch the port to the top side of the parent entity

See Also:
Constant Field Values

BOTTOM

public static final int BOTTOM
Attatch the port to the bottom side of the parent entity

See Also:
Constant Field Values

enum_side

public static final String[] enum_side
Constructor Detail

Anim_port

public Anim_port(String name,
                 String imagename)
This constructor should not be used directly, use the extended constructor in Sim_port instead.

Method Detail

set_position

public void set_position(int side,
                         int pos)
This method should not be used directly.


parseSide

static int parseSide(String side)

update_position

void update_position()

link_port

void link_port(Anim_port link,
               boolean primary)

get_name

String get_name()

move_msg

void move_msg(double pos)

set_data

void set_data(String data)

set_parent

void set_parent(Anim_entity parent)

get_parent

Anim_entity get_parent()

get_link_pos

Point get_link_pos()

get_port_pos

Point get_port_pos()

draw_messages

public void draw_messages(Graphics g)
This method should not be used directly


draw

void draw(Graphics g)

SimJava 2.0.1

The University of Edinburgh, 2009