// **********************************************************************
//
//
* This class needs the RecordSet to be called with the following
* query:
* The class is expecting the results in this order.
*/
public interface LocationDataRecord {
// public LocationData();
public boolean load(RecordSet drs, LocationColorFormatter colfmt) throws SQLException;
/* public void close() throws SQLException {
rset.close();
stmt.close();
}
public Connection getConnection() {
return connection;
}
public void setConnection(Connection inConnection) {
connection = inConnection;
}
*/
/**
* @return city name of current record
*/
public String getDisplayName();
/* public String getStateName() {
return stateName;
}
*/
public int getRecID();
public String getGraphicName();
public float getLatitude();
public float getLongitude();
// ----------------------------------------------------------------
/**
* Description string
* @return String
*/
public String getDetails();
// ----------------------------------------------------------------
/**
* Default output string
* @return String
*/
public String toString();
/**
* Get the color used for the location graphic.
*/
public Color getLocationColor(Color defcolor);
/**
* Get the color used for the label.
*/
public Color getLabelColor(Color defcolor);
// ----------------------------------------------------------------
public Image getLocationImage();
// ----------------------------------------------------------------
public String getImageUrl();
}