From 7ac1b01c591ed65743676b1181d60eb17c5cb69d Mon Sep 17 00:00:00 2001
From: Normand Briere <nbriere@noware.ca>
Date: Wed, 21 Aug 2019 18:58:52 -0400
Subject: [PATCH] U dir and average.
---
timeflow/vis/Mouseover.java | 17 +++++++++--------
1 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/timeflow/vis/Mouseover.java b/timeflow/vis/Mouseover.java
index eb2b74b..7f58071 100755
--- a/timeflow/vis/Mouseover.java
+++ b/timeflow/vis/Mouseover.java
@@ -45,21 +45,22 @@
}
- boxW = Math.min(350, boxW);
- int boxH = 18 * numLines + 10;
- int mx = this.x + this.width + 5;
- int my = this.y + this.height + 35;
+ //boxW = Math.min(350, boxW);
+ int boxH = 18 * numLines; // + 10;
+ int mx = this.x + this.width; // + 5;
+ int my = this.y + this.height; // + 35;
// put box in a place where it does not obscure the data
// or go off screen.
- if (my + boxH > maxH - 10)
+ if (my + boxH > maxH) // - 10)
{
- my = Math.max(10, this.y - boxH - 5);
+// my = Math.max(10, this.y - boxH - 5);
}
- if (mx + boxW > maxW - 10)
+ if (mx + boxW > maxW) // - 10)
{
- mx = Math.max(10, this.x - boxW - 10);
+// mx = Math.max(10, this.x - boxW - 10);
}
+
int ty = my;
g.setColor(new Color(0, 0, 0, 70));
g.fillRoundRect(mx - 11, my - 16, boxW, boxH, 12, 12);
--
Gitblit v1.6.2