model
Class Line

java.lang.Object
  extended by model.Line

public class Line
extends java.lang.Object

Title: Bioinformatics Project

Description: Genomes Comparacent

Copyright: Copyright (c) 2005-2006

Line - an object which cotains a line coordinates

Version:
1.0
Author:
Shadi Ibrahem.

Field Summary
 boolean sign
          Line sign.
 double x1
          Line coordinates.
 double x2
          Line coordinates.
 double y1
          Line coordinates.
 double y2
          Line coordinates.
 
Constructor Summary
Line()
          Empty constructor.
 
Method Summary
 boolean getSign()
          returns the line sign is imported from the file.
 void setCoordinates(double d1, double e1, double d2, double e2, char c)
          Sets the line fields with the given parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x1

public double x1
Line coordinates.


y1

public double y1
Line coordinates.


x2

public double x2
Line coordinates.


y2

public double y2
Line coordinates.


sign

public boolean sign
Line sign.

Constructor Detail

Line

public Line()
Empty constructor.

Method Detail

setCoordinates

public void setCoordinates(double d1,
                           double e1,
                           double d2,
                           double e2,
                           char c)
Sets the line fields with the given parameters.

Parameters:
d1 - double
e1 - double
d2 - double
e2 - double
c - char

getSign

public boolean getSign()
returns the line sign is imported from the file.

Returns:
boolean: true if the sign is +.