package uk.ac.leeds.ccg.geotools; import java.lang.*; import java.awt.*; import java.util.*; import java.io.*; /** an experimental class to hold multiple layers as if a * single layer. Layers are drawn in the order they are added. *
Ian
*/
public class MultiLayer extends SimpleLayer implements
LayerChangedListener{
static boolean DEBUG=false;
static String DBC="ML->";
public Vector layers = new Vector();
GeoRectangle bounds = new GeoRectangle();
public MultiLayer(){
}
public void clearLayers(boolean quite){
//layers= new Vector();
layers.clear();
if(!quite) notifyLayerChangedListeners(LayerChangedEvent.DATA);
}
public void clearLayers(){
clearLayers(false);
}
public void paintScaled(GeoGraphics gg){
GeoRectangle ext = gg.scale.getMapExtent();
for(int i=0;i