Search in sources :

Example 6 with AbstractInstancePainter

use of eu.esdihumboldt.hale.ui.views.styledmap.painter.AbstractInstancePainter in project hale by halestudio.

the class StyledMapExtra method disableScenePainterListeners.

/**
 * Remove the instance painters as listeners.
 *
 * @param selection the selection service
 * @param instances the instance service
 * @param styles the style service
 * @param geometries the geometry schema service
 */
private void disableScenePainterListeners(ISelectionService selection, InstanceService instances, StyleService styles, GeometrySchemaService geometries) {
    for (AbstractInstancePainter painter : mapView.getMapKit().getTilePainters(AbstractInstancePainter.class)) {
        selection.removeSelectionListener(painter);
        instances.removeListener(painter);
        styles.removeListener(painter.getStyleListener());
        geometries.removeListener(painter.getGeometryListener());
        painter.clearWaypoints();
    }
}
Also used : AbstractInstancePainter(eu.esdihumboldt.hale.ui.views.styledmap.painter.AbstractInstancePainter)

Aggregations

AbstractInstancePainter (eu.esdihumboldt.hale.ui.views.styledmap.painter.AbstractInstancePainter)6 BoundingBox (de.fhg.igd.geom.BoundingBox)2 HashSet (java.util.HashSet)2 GeoPosition (org.jdesktop.swingx.mapviewer.GeoPosition)2 ITileOverlayService (de.fhg.igd.mapviewer.view.overlay.ITileOverlayService)1 TileOverlayFactory (de.fhg.igd.mapviewer.view.overlay.TileOverlayFactory)1 InstanceReference (eu.esdihumboldt.hale.common.instance.model.InstanceReference)1 StyleService (eu.esdihumboldt.hale.ui.common.service.style.StyleService)1 GeometrySchemaService (eu.esdihumboldt.hale.ui.geometry.service.GeometrySchemaService)1 DefaultInstanceSelection (eu.esdihumboldt.hale.ui.selection.impl.DefaultInstanceSelection)1 InstanceService (eu.esdihumboldt.hale.ui.service.instance.InstanceService)1 PainterLayoutController (eu.esdihumboldt.hale.ui.views.styledmap.clip.layout.extension.PainterLayoutController)1 InstanceWaypoint (eu.esdihumboldt.hale.ui.views.styledmap.painter.InstanceWaypoint)1 ISelection (org.eclipse.jface.viewers.ISelection)1 IPartService (org.eclipse.ui.IPartService)1 ISelectionService (org.eclipse.ui.ISelectionService)1 TileOverlayPainter (org.jdesktop.swingx.mapviewer.TileOverlayPainter)1