Search in sources :

Example 1 with EditRecordGeometryOverlay

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);
}
Also used : EditRecordGeometryOverlay(com.revolsys.swing.map.overlay.record.EditRecordGeometryOverlay) MouseOverlay(com.revolsys.swing.map.overlay.MouseOverlay) MeasureOverlay(com.revolsys.swing.map.overlay.MeasureOverlay) EditGeoreferencedImageOverlay(com.revolsys.swing.map.overlay.EditGeoreferencedImageOverlay) SelectRecordsOverlay(com.revolsys.swing.map.overlay.record.SelectRecordsOverlay) ZoomOverlay(com.revolsys.swing.map.overlay.ZoomOverlay) ToolTipOverlay(com.revolsys.swing.map.overlay.ToolTipOverlay)

Example 2 with EditRecordGeometryOverlay

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);
            }
        }
    }
}
Also used : EditRecordGeometryOverlay(com.revolsys.swing.map.overlay.record.EditRecordGeometryOverlay) MapPanel(com.revolsys.swing.map.MapPanel) FieldDefinition(com.revolsys.record.schema.FieldDefinition) RecordDefinition(com.revolsys.record.schema.RecordDefinition)

Aggregations

EditRecordGeometryOverlay (com.revolsys.swing.map.overlay.record.EditRecordGeometryOverlay)2 FieldDefinition (com.revolsys.record.schema.FieldDefinition)1 RecordDefinition (com.revolsys.record.schema.RecordDefinition)1 MapPanel (com.revolsys.swing.map.MapPanel)1 EditGeoreferencedImageOverlay (com.revolsys.swing.map.overlay.EditGeoreferencedImageOverlay)1 MeasureOverlay (com.revolsys.swing.map.overlay.MeasureOverlay)1 MouseOverlay (com.revolsys.swing.map.overlay.MouseOverlay)1 ToolTipOverlay (com.revolsys.swing.map.overlay.ToolTipOverlay)1 ZoomOverlay (com.revolsys.swing.map.overlay.ZoomOverlay)1 SelectRecordsOverlay (com.revolsys.swing.map.overlay.record.SelectRecordsOverlay)1