package com.maxml.timer.entity;
public class Line {
	private double distance;
	private Point start;
	private Point finish;

	public Line(double distance, Point start, Point finish) {
		super();
		this.distance = distance;
		this.start = start;
		this.finish = finish;
	}

	public double getDistance() {
		return distance;
	}

	public void setDistance(double distance) {
		this.distance = distance;
	}

	public Point getStart() {
		return start;
	}

	public void setStart(Point start) {
		this.start = start;
	}

	public Point getFinish() {
		return finish;
	}

	public void setFinish(Point finish) {
		this.finish = finish;
	}

	@Override
	public String toString() {
		return "Line [distance=" + distance + ", start=" + start + ", finish="
				+ finish + "]";
	}
}

@@ -25,16 +25,17 @@
 entity;%0A
+%0A
 public c
@@ -50,34 +50,8 @@
 e %7B%0A
-%09private double distance;%0A
 %09pri
@@ -109,25 +109,8 @@
 ine(
-double distance, 
 Poin
@@ -149,36 +149,8 @@
 ();%0A
-%09%09this.distance = distance;%0A
 %09%09th
@@ -239,92 +239,108 @@
 urn 
-distance;%0A%09%7D%0A%0A%09public void setDistance(double distance) %7B%0A%09%09this.distance = distance
+Math.sqrt(Math.pow(start.getX() - finish.getX(), 2)%0A%09%09%09%09+ Math.pow(start.getY() - finish.getY(), 2))
 ;%0A%09%7D
@@ -635,24 +635,29 @@
 nce=%22 + 
-d
+getD
 istance
+()
  + %22, st

fix to line class