SimJava 2.0.1

eduni.simdiag
Class Entry

Object
  extended by Entry

 class Entry
extends Object

This class represents an entry on the diagram including all data.

Version:
1.0, June 1997
Author:
Fred Howell

Field Summary
(package private)  double endt
           
protected  List events
           
(package private)  int h
           
protected  String name
           
(package private)  double startt
           
protected  TypeParam tp
           
(package private)  int w
           
(package private)  int x
           
(package private)  int y
           
 
Constructor Summary
Entry(String n, TypeParam tp)
           
 
Method Summary
(package private)  void add(Event e)
           
(package private)  void draw(Graphics g, double t1, double t2)
           
(package private)  void drawLabel(Graphics g, int x, int y)
           
(package private)  TypeParam getType()
           
(package private)  void setPosition(int x, int y, int w, int h)
           
(package private)  int ttox(double t)
           
(package private)  Color valtocol(int v)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected String name

events

protected List events

tp

protected TypeParam tp

x

int x

y

int y

w

int w

h

int h

startt

double startt

endt

double endt
Constructor Detail

Entry

Entry(String n,
      TypeParam tp)
Method Detail

getType

TypeParam getType()

add

void add(Event e)

setPosition

void setPosition(int x,
                 int y,
                 int w,
                 int h)

ttox

int ttox(double t)

valtocol

Color valtocol(int v)

drawLabel

void drawLabel(Graphics g,
               int x,
               int y)

draw

void draw(Graphics g,
          double t1,
          double t2)

SimJava 2.0.1

The University of Edinburgh, 2009