public abstract class AltosMapTile implements AltosFontListener {
AltosMapTileListener listener;
- AltosLatLon upper_left, center;
- int px_size;
+ public AltosLatLon upper_left, center;
+ public int px_size;
int zoom;
int maptype;
- AltosMapStore store;
- AltosMapCache cache;
- int status;
+ public AltosMapStore store;
+ public AltosMapCache cache;
+ public int status;
static public final int success = 0;
static public final int loading = 1;
AltosDescent descent;
AltosLanded landed;
AltosCompanionInfo companion;
- AltosUIMap sitemap;
+ AltosUIMapNew sitemap;
boolean has_map;
boolean has_companion;
boolean has_state;
has_companion = false;
has_state = false;
- sitemap = new AltosUIMap();
+ sitemap = new AltosUIMapNew();
displays.add(sitemap);
has_map = false;
+++ /dev/null
-/*
- * Copyright © 2010 Keith Packard <keithp@keithp.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
- */
-
-package org.altusmetrum.altosuilib_6;
-
-import org.altusmetrum.altoslib_6.*;
-
-public interface AltosFlightDisplay extends AltosUnitsListener, AltosFontListener {
- void reset();
-
- void show(AltosState state, AltosListenerState listener_state);
-
- String getName();
-}
+++ /dev/null
-/*
- * Copyright © 2011 Keith Packard <keithp@keithp.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
- */
-
-package org.altusmetrum.altosuilib_6;
-
-public interface AltosFontListener {
- void font_size_changed(int font_size);
-}
}
public void paint(Graphics g) {
- VolatileImage back_buffer = create_back_buffer();
- do {
- GraphicsConfiguration gc = getGraphicsConfiguration();
- int code = back_buffer.validate(gc);
- if (code == VolatileImage.IMAGE_INCOMPATIBLE)
- back_buffer = create_back_buffer();
-
- Graphics g_back = back_buffer.getGraphics();
- g_back.setClip(g.getClip());
- do_paint(g_back);
- g_back.dispose();
-
- g.drawImage(back_buffer, 0, 0, this);
- } while (back_buffer.contentsLost());
- back_buffer.flush();
}
public void update(Graphics g) {
GrabNDrag.java \
AltosDevice.java \
AltosDeviceDialog.java \
- AltosFlightDisplay.java \
- AltosFontListener.java \
AltosPositionListener.java \
AltosUIConfigure.java \
AltosUIAxis.java \
AltosBTManage.java \
AltosBTKnown.java \
AltosUIMap.java \
+ AltosUIMapNew.java \
AltosUIMapView.java \
AltosUIMapLine.java \
AltosUIMapMark.java \
AltosUIFreqList.java \
AltosUITelemetryList.java \
AltosUIRateList.java \
+ AltosUIImage.java \
OSXAdapter.java
JAR=altosuilib_$(ALTOSUILIB_VERSION).jar
dnl ==========================================================================
dnl Java library versions
-ALTOSUILIB_VERSION=6
-ALTOSLIB_VERSION=6
+ALTOSUILIB_VERSION=7
+ALTOSLIB_VERSION=7
AC_SUBST(ALTOSLIB_VERSION)
AC_DEFINE(ALTOSLIB_VERSION,$ALTOSLIB_VERSION,[Version of the AltosLib package])