projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altosui: Add a bunch more site locations
[fw/altos]
/
altosui
/
AltosSiteMapTile.java
diff --git
a/altosui/AltosSiteMapTile.java
b/altosui/AltosSiteMapTile.java
index 8301f42b007e7fa9907991c3920543ce033e4946..66da7c54f01db2362941610adaf68a71ad91a91d 100644
(file)
--- a/
altosui/AltosSiteMapTile.java
+++ b/
altosui/AltosSiteMapTile.java
@@
-35,11
+35,16
@@
public class AltosSiteMapTile extends JLayeredPane {
JLabel mapLabel;
JLabel draw;
Graphics2D g2d;
JLabel mapLabel;
JLabel draw;
Graphics2D g2d;
+ int px_size;
public void loadMap(ImageIcon icn) {
mapLabel.setIcon(icn);
}
public void loadMap(ImageIcon icn) {
mapLabel.setIcon(icn);
}
+ public void clearMap() {
+ fillLabel(mapLabel, Color.GRAY, px_size);
+ }
+
static Color stateColors[] = {
Color.WHITE, // startup
Color.WHITE, // idle
static Color stateColors[] = {
Color.WHITE, // startup
Color.WHITE, // idle
@@
-90,7
+95,8
@@
public class AltosSiteMapTile extends JLayeredPane {
return g;
}
return g;
}
- public AltosSiteMapTile(int px_size) {
+ public AltosSiteMapTile(int in_px_size) {
+ px_size = in_px_size;
setPreferredSize(new Dimension(px_size, px_size));
mapLabel = new JLabel();
setPreferredSize(new Dimension(px_size, px_size));
mapLabel = new JLabel();