bookExamples.ch26Graphics
Class LineSegment

java.lang.Object
  extended by bookExamples.ch26Graphics.LineSegment

public class LineSegment
extends java.lang.Object

A class to store the coordinates of one scribbled line. The complete scribble is stored as a Vector of these objects


Field Summary
 short x1
           
 short x2
           
 short y1
           
 short y2
           
 
Constructor Summary
LineSegment(short x1, short y1, short x2, short y2)
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x1

public short x1

y1

public short y1

x2

public short x2

y2

public short y2
Constructor Detail

LineSegment

public LineSegment(short x1,
                   short y1,
                   short x2,
                   short y2)