package uk.ac.leeds.ccg.cluster; import uk.ac.leeds.ccg.geotools.*; public class MyCircleLayer extends CircleLayer{ GeoCircle circle = new GeoCircle(); double x,y,r; public MyCircleLayer(){ super(); addGeoCircle(circle); } public void setPos(double x,double y){ this.x=x; this.y=y; circle.setCentre(x,y); notifyLayerChangedListeners(LayerChangedEvent.ANIMATION); } public void setRadius(double r){ this.r=r; circle.setRadius(r); notifyLayerChangedListeners(LayerChangedEvent.ANIMATION); } }