morey.spore
Class SporeEventStore

java.lang.Object
  |
  +--morey.spore.SporeEventStore

public class SporeEventStore
extends java.lang.Object

a simple listener to output the results of the Processor. This will no doubt be replaced by something not quite so simple!

Here is a link to the source code

See Also:
SporeListener

Field Summary
protected  java.awt.Color background
           
protected static java.awt.Color[][] col
           
protected static int ERASE
           
protected  boolean light
           
protected static int N_COLS
           
protected  java.util.LinkedList newPolygons
           
protected  java.awt.Dimension oldSize
           
protected  java.util.Hashtable polygons
           
protected static double RADIUS
           
protected  double scale
           
protected  java.awt.Dimension size
           
protected static double[][][] WHEEL
           
protected  boolean wrap
          wrap has to do with the torus topology that is not implemented...
 
Constructor Summary
SporeEventStore(boolean light)
           
 
Method Summary
 void addPolygon(RPolygon rp, double time)
           
 void clear()
           
 void drawPolygon(java.awt.Graphics g, java.awt.Polygon p, java.awt.Color c)
           
 void erasePolygon(java.awt.Graphics g, java.awt.Polygon p)
           
 java.awt.Color getBackground()
           
 java.awt.Color getColour(int i)
           
 java.awt.Color getColour(int index, double time)
           
 double getScale()
           
 void paint(java.awt.Graphics g, java.awt.Dimension size)
           
 void removePolygon(RPolygon rp)
           
 void setBackground(java.awt.Color c)
           
 void setScale(double scale)
           
 void setWrap(boolean b)
           
 void update(java.awt.Graphics g, java.awt.Dimension size)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

size

protected java.awt.Dimension size

oldSize

protected java.awt.Dimension oldSize

polygons

protected java.util.Hashtable polygons

newPolygons

protected java.util.LinkedList newPolygons

col

protected static java.awt.Color[][] col

background

protected java.awt.Color background

N_COLS

protected static final int N_COLS

ERASE

protected static final int ERASE

RADIUS

protected static final double RADIUS

WHEEL

protected static final double[][][] WHEEL

light

protected boolean light

wrap

protected boolean wrap
wrap has to do with the torus topology that is not implemented...

scale

protected double scale
Constructor Detail

SporeEventStore

public SporeEventStore(boolean light)
Method Detail

paint

public void paint(java.awt.Graphics g,
                  java.awt.Dimension size)

update

public void update(java.awt.Graphics g,
                   java.awt.Dimension size)

addPolygon

public void addPolygon(RPolygon rp,
                       double time)

removePolygon

public void removePolygon(RPolygon rp)

drawPolygon

public void drawPolygon(java.awt.Graphics g,
                        java.awt.Polygon p,
                        java.awt.Color c)

erasePolygon

public void erasePolygon(java.awt.Graphics g,
                         java.awt.Polygon p)

getColour

public java.awt.Color getColour(int i)

getColour

public java.awt.Color getColour(int index,
                                double time)

setWrap

public void setWrap(boolean b)

setScale

public void setScale(double scale)

getScale

public double getScale()

clear

public void clear()

setBackground

public void setBackground(java.awt.Color c)

getBackground

public java.awt.Color getBackground()