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();
}
}
Aggregations