hi all,
Iam new to Oracle Spatial
iam using JBO:Oracle spatial data viewer to display the shape files of the polygons.
iam able to get the manually but iam unable to display the polygon
there is a java file displayManager viz iam getting an error please check the code and answer me back
here iam sending my code
package org.duckham.jbgui;
import org.duckham.jbcore.SpatialSet;
import org.duckham.jbcore.SimpleDB;
import java.util.*;
import java.awt.geom.*;
import java.beans.*;
public class DisplayManager extends Object implements RepaintListener, DisplayManagementListener, QueryListener, SelectionListener, DataUpdateListener, java.io.Serializable{
protected Hashtable display = new Hashtable();
protected Hashtable default_display = new Hashtable();
protected Hashtable data_sets = new Hashtable();
public static final String SELECTED = "SELECTED";
protected Vector displayUpdateListeners = new Vector();
..
...
.
.
. public void setDataSet(String name, SpatialSet ss, Appearance ap_default){
data_sets.put(name,ss);
default_display.put(name,ap_default);
}
here is the ERROR >>>>>
public void updateData(DataUpdateEvent evt) {
>> setDataSet(evt.getDataSetName(), evt.getDataSet(),evt.getDefaultAppearance());
if(evt.updateView()){
notifyDisplayUpdate(getDataSet(evt.getDataSetName( )).getBounds());
setDisplayByDataSetName(evt.getDataSetName());
} else
notifyDisplayUpdate(null);
}
thank you in advance
/* *************************** ERROR**************************************/
The error is :
The Method setDataSet(String,SpatialSet,Appearence) in the type DisplayManager is not applicable for the arguments(String,SpatialSet,Appearence)