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


Field Summary
 
Fields inherited from class EVolve.util.painters.shapes.Shape
color, consumerMap, entity_id, entity_type, x, y
 
Constructor Summary
Line(long entity_type, long entity_id, int size)
           
 
Method Summary
 java.lang.Object clone()
           
 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, 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

Line

public Line(long entity_type,
            long entity_id,
            int size)
Method Detail

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