vv.addKeyListener(graphMouse.getModeKeyListener());
hyperbolicViewSupport =
new ViewLensSupport<String,Number>(vv, new HyperbolicShapeTransformer(vv,
vv.getRenderContext().getMultiLayerTransformer().getTransformer(Layer.VIEW)),
new ModalLensGraphMouse());
hyperbolicLayoutSupport =
new LayoutLensSupport<String,Number>(vv, new HyperbolicTransformer(vv,
vv.getRenderContext().getMultiLayerTransformer().getTransformer(Layer.LAYOUT)),
new ModalLensGraphMouse());
magnifyViewSupport =
new ViewLensSupport<String,Number>(vv, new MagnifyShapeTransformer(vv,
vv.getRenderContext().getMultiLayerTransformer().getTransformer(Layer.VIEW)),
new ModalLensGraphMouse(new LensMagnificationGraphMousePlugin(1.f, 6.f, .2f)));
magnifyLayoutSupport =
new LayoutLensSupport<String,Number>(vv, new MagnifyTransformer(vv,
vv.getRenderContext().getMultiLayerTransformer().getTransformer(Layer.LAYOUT)),
new ModalLensGraphMouse(new LensMagnificationGraphMousePlugin(1.f, 6.f, .2f)));
hyperbolicLayoutSupport.getLensTransformer().setLensShape(hyperbolicViewSupport.getLensTransformer().getLensShape());
magnifyViewSupport.getLensTransformer().setLensShape(hyperbolicLayoutSupport.getLensTransformer().getLensShape());
magnifyLayoutSupport.getLensTransformer().setLensShape(magnifyViewSupport.getLensTransformer().getLensShape());
final ScalingControl scaler = new CrossoverScalingControl();