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
|
Constructor Summary |
Ball(long entity_type,
long entity_id,
int diameter)
|
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Ball
public Ball(long entity_type,
long entity_id,
int diameter)
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