EVolve.util.painters.shapes
Class Ball

java.lang.Object
  |
  +--EVolve.util.painters.shapes.Shape
        |
        +--EVolve.util.painters.shapes.Ball
All Implemented Interfaces:
java.lang.Cloneable

public class Ball
extends Shape


Field Summary
 
Fields inherited from class EVolve.util.painters.shapes.Shape
color, consumerMap, entity_id, entity_type, x, y
 
Constructor Summary
Ball(long entity_type, long entity_id, int diameter)
           
 
Method Summary
 void draw(java.awt.Graphics2D g)
           
 void fill(java.awt.Graphics2D g)
           
 int getHeight()
           
 java.lang.String getName()
           
 int getWidth()
           
 boolean insideShape(int x, int y)
           
 void setSize(int width, int height)
           
 
Methods inherited from class EVolve.util.painters.shapes.Shape
addConsumer, clone, drawArrows, getColor, getConsumers, getEntityID, getEntityType, getPosition, move, setColor
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ball

public Ball(long entity_type,
            long entity_id,
            int diameter)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in class Shape

draw

public void draw(java.awt.Graphics2D g)
Specified by:
draw in class Shape

fill

public void fill(java.awt.Graphics2D g)
Specified by:
fill in class Shape

insideShape

public boolean insideShape(int x,
                           int y)
Specified by:
insideShape in class Shape

getWidth

public int getWidth()
Specified by:
getWidth in class Shape

getHeight

public int getHeight()
Specified by:
getHeight in class Shape

setSize

public void setSize(int width,
                    int height)
Specified by:
setSize in class Shape