Class Line

java.lang.Object
  |
  +--Line
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable

class Line
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable


Field Summary
 Vertex end
           
private static long serialVersionUID
           
 Vertex start
           
 
Constructor Summary
Line(Vertex v1, Vertex v2)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 void draw(java.awt.Graphics g, Matrix m)
           
 boolean equals(java.lang.Object o)
           
 void mapdraw(java.awt.Graphics g, java.awt.geom.AffineTransform trans)
           
 void paint(View view)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID

start

public Vertex start

end

public Vertex end
Constructor Detail

Line

public Line(Vertex v1,
            Vertex v2)
Method Detail

draw

public void draw(java.awt.Graphics g,
                 Matrix m)

mapdraw

public void mapdraw(java.awt.Graphics g,
                    java.awt.geom.AffineTransform trans)

paint

public void paint(View view)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable