summaryrefslogtreecommitdiff
path: root/altosuilib/AltosUIMapView.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-06-11 20:36:49 -0700
committerKeith Packard <keithp@keithp.com>2014-06-11 20:43:54 -0700
commitbfc0c65c9f9ec9547d71016fc897ba35bdb414f8 (patch)
tree36e97c779e9a79bac23ba06f33bd39c39206effb /altosuilib/AltosUIMapView.java
parent2182c49298e0862a60dea104450d5f74dbeaeeb2 (diff)
altosuilib: Handle font and units changes in maps and stats table
Add AltosFontListener and AltosUnitsListener bits as needed Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosuilib/AltosUIMapView.java')
-rw-r--r--altosuilib/AltosUIMapView.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/altosuilib/AltosUIMapView.java b/altosuilib/AltosUIMapView.java
index c558118b..edae3e1e 100644
--- a/altosuilib/AltosUIMapView.java
+++ b/altosuilib/AltosUIMapView.java
@@ -68,6 +68,11 @@ public class AltosUIMapView extends Canvas implements MouseMotionListener, Mouse
line.set_font(AltosUILib.value_font);
for (AltosUIMapTile tile : tiles.values())
tile.set_font(AltosUILib.value_font);
+ repaint();
+ }
+
+ public void set_units() {
+ repaint();
}
private boolean is_drag_event(MouseEvent e) {