From 9a68389f994c946eaac192552cf286f659ed6c32 Mon Sep 17 00:00:00 2001 From: 7u83 <7u83@mail.ru> Date: Wed, 4 Oct 2017 11:11:03 +0200 Subject: [PATCH] Refactoring --- src/chart/painter/ChartCrossPainter.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/chart/painter/ChartCrossPainter.java b/src/chart/painter/ChartCrossPainter.java index aae5b60..b84d77e 100644 --- a/src/chart/painter/ChartCrossPainter.java +++ b/src/chart/painter/ChartCrossPainter.java @@ -29,9 +29,7 @@ import chart.ChartDef; import chart.ChartPanel; import java.awt.Graphics2D; import java.awt.Point; -import javax.swing.JPanel; -import javax.swing.JScrollBar; -import sesim.OHLCData; + /** * @@ -45,8 +43,8 @@ public class ChartCrossPainter extends ChartPainter{ if (mp==null) return; - g.drawLine(0, p.mouse.y-1, p.getSize().width, p.mouse.y-1); - g.drawLine(p.mouse.x-1, 0, p.mouse.x-1, p.getSize().height); + g.drawLine(0, p.mouse.y, p.getSize().width, p.mouse.y); + g.drawLine(p.mouse.x, 0, p.mouse.x, p.getSize().height); }