import org.simantics.g2d.participant.GridPainter;
import org.simantics.g2d.participant.PanZoomRotateHandler;
import org.simantics.g2d.participant.RenderingQualityInteractor;
+import org.simantics.g2d.participant.ZoomToAreaHandler;
+import org.simantics.maps.MapScalingTransform;
import org.simantics.maps.eclipse.MapPainter;
import org.simantics.modeling.ui.diagramEditor.DiagramViewer;
import org.simantics.utils.datastructures.hints.IHintContext;
ctx.add(new ElementPainter());
ctx.add(new DNPointerInteractor());
- ctx.add(new MapPainter(100000));
+ ctx.add(new MapPainter(MapScalingTransform.INSTANCE));
- ctx.add(new NetworkDrawingParticipant());
+ ctx.add(new NetworkDrawingParticipant(MapScalingTransform.INSTANCE));
}
protected String getPopupId() {
ctx.add(new MapRulerPainter());
ctx.add(new BackgroundPainter());
}
+
+ protected void addViewManipulationParticipants(CanvasContext ctx) {
+ ctx.add(new DistrictPanZoomRotateHandler());
+ //ctx.add(new MousePanZoomInteractor());
+ //ctx.add(new MultitouchPanZoomRotateInteractor());
+ // ctx.add( new OrientationRestorer() );
+ ctx.add(new ZoomToAreaHandler());
+ }
+
}