Venice 0.751beta

nz.org.venice.chart
Class DrawnLine

java.lang.Object
  extended bynz.org.venice.chart.DrawnLine

public class DrawnLine
extends java.lang.Object


Constructor Summary
DrawnLine()
           
DrawnLine(Coordinate start, Coordinate end)
          Construct a new DrawnLine with a pair of end points
 
Method Summary
 boolean compareTo(Coordinate start, Coordinate end)
          Direct comparison between this line and a specified one
 boolean compareTo(DrawnLine l)
          Direct comparison between this line and a specified one
 Coordinate getEnd()
          Return the coordinate of the last point of the line
 Coordinate getStart()
          Return the coordinate of the first point of the line
 void setEnd(Coordinate p)
          Set the end point of the line
 void setStart(Coordinate p)
          Set the start point of the line
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DrawnLine

public DrawnLine()

DrawnLine

public DrawnLine(Coordinate start,
                 Coordinate end)
Construct a new DrawnLine with a pair of end points

Parameters:
start - The first end point
end - The second end point
Method Detail

getStart

public Coordinate getStart()
Return the coordinate of the first point of the line

Returns:
The Coordinate of the start point

getEnd

public Coordinate getEnd()
Return the coordinate of the last point of the line

Returns:
The Coordinate of the end point

setStart

public void setStart(Coordinate p)
Set the start point of the line

Parameters:
p - The Coordinate of the first point in the line

setEnd

public void setEnd(Coordinate p)
Set the end point of the line

Parameters:
p - The Coordinate of the end point in the line

compareTo

public boolean compareTo(DrawnLine l)
Direct comparison between this line and a specified one

Parameters:
l - The line to compare against this one
Returns:
True if the line has the same start and end point false otherwise

compareTo

public boolean compareTo(Coordinate start,
                         Coordinate end)
Direct comparison between this line and a specified one

Parameters:
start - The start point of the line to compare
end - The end point of the line to compare
Returns:
True if the line has the same start and end point false otherwise

toString

public java.lang.String toString()

Venice 0.751beta