EVolve.util.painters.shapes
Class Line
java.lang.Object
|
+--EVolve.util.painters.shapes.Shape
|
+--EVolve.util.painters.shapes.Line
- All Implemented Interfaces:
- java.lang.Cloneable
- public class Line
- extends Shape
- implements java.lang.Cloneable
Constructor Summary |
Line(long entity_type,
long entity_id,
int size)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Line
public Line(long entity_type,
long entity_id,
int size)
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
getName
public java.lang.String getName()
- Specified by:
getName
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
clone
public java.lang.Object clone()
- Overrides:
clone
in class Shape