diff options
| author | Keith Packard <keithp@keithp.com> | 2017-08-26 19:14:10 -0700 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2017-08-27 17:38:58 -0700 | 
| commit | 3dde7f4d05414ac4907c91c68c88cc1d06233605 (patch) | |
| tree | 6497f61eb81b0aa53af97b002fd829467952b753 /micropeak/MicroRaw.java | |
| parent | cf20e213f39fb24f15e0ac94307c2d138fcadecb (diff) | |
micropeak: Track font changes in raw data display
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'micropeak/MicroRaw.java')
| -rw-r--r-- | micropeak/MicroRaw.java | 11 | 
1 files changed, 10 insertions, 1 deletions
| diff --git a/micropeak/MicroRaw.java b/micropeak/MicroRaw.java index d1d5d076..7a60499e 100644 --- a/micropeak/MicroRaw.java +++ b/micropeak/MicroRaw.java @@ -24,7 +24,11 @@ import javax.swing.*;  import org.altusmetrum.altoslib_12.*;  import org.altusmetrum.altosuilib_12.*; -public class MicroRaw extends JTextArea { +public class MicroRaw extends JTextArea implements AltosFontListener { + +	public void font_size_changed(int font_size) { +		setFont(AltosUILib.table_value_font); +	}  	public void setData(MicroData data) {  		StringWriter	sw = new StringWriter(); @@ -38,9 +42,14 @@ public class MicroRaw extends JTextArea {  		setCaretPosition(0);  	} +	public void tell_closing() { +		AltosUIPreferences.unregister_font_listener(this); +	} +  	public MicroRaw() {  		super(1, 30);  		setFont(AltosUILib.table_value_font);  		setEditable(false); +		AltosUIPreferences.register_font_listener(this);  	}  } | 
