@Override public void uninstall(Controller c) throws Exception { MainPanel msp = c.getPlugin(MainPanel.class); msp.removeAll(getClass()); transformationComponent.removeChild(scalingComponent); super.uninstall(c); }
@Override public void install(Controller c) throws Exception { super.install(c); Scene scene = c.getPlugin(Scene.class); setContentSize(contentSize); setVerticalOffset(verticalOffset); transformationComponent = scene.getContentComponent(); scalingComponent.setTransformation(new Transformation("scaling trafo")); transformationComponent.addChild(scalingComponent); SceneGraphPath newEmptyPick = scene.getContentPath().pushNew(scalingComponent); scene.setEmptyPickPath(newEmptyPick); createGUI(); MainPanel msp = c.getPlugin(MainPanel.class); msp.addComponent(getClass(), panel, 0.0, "Content"); }