use of com.revolsys.swing.map.overlay.record.EditRecordGeometryOverlay in project com.revolsys.open by revolsys.
the class MapPanel method addMapOverlays.
protected void addMapOverlays() {
new SelectRecordsOverlay(this);
new ZoomOverlay(this);
new EditRecordGeometryOverlay(this);
this.mouseOverlay = new MouseOverlay(this, this.layeredPane);
new EditGeoreferencedImageOverlay(this);
new MeasureOverlay(this);
this.toolTipOverlay = new ToolTipOverlay(this);
}
use of com.revolsys.swing.map.overlay.record.EditRecordGeometryOverlay in project com.revolsys.open by revolsys.
the class AbstractRecordLayer method addNewRecord.
public void addNewRecord() {
final RecordDefinition recordDefinition = getRecordDefinition();
final FieldDefinition geometryField = recordDefinition.getGeometryField();
if (geometryField == null) {
showAddForm(null);
} else {
final MapPanel map = getMapPanel();
if (map != null) {
final EditRecordGeometryOverlay addGeometryOverlay = map.getMapOverlay(EditRecordGeometryOverlay.class);
synchronized (addGeometryOverlay) {
clearSelectedRecords();
addGeometryOverlay.addRecord(this, this);
}
}
}
}
Aggregations