public StackContainerController ( final SymbolController controller, final StackContainer element, final BasicViewElementFactory factory ) throws Exception { this.figure = new Layer (); this.figure.setOpaque ( false ); this.figure.setLayoutManager ( this.layout = new StackLayout () ); this.layout.setObserveVisibility ( true ); for ( final Primitive child : element.getChildren () ) { final Controller elementController = factory.create ( controller, child ); final IFigure childFigure = elementController.getFigure (); controller.addRawElement ( child.getName (), elementController ); this.figure.add ( childFigure ); } controller.addElement ( element, this ); }
public StackContainerController ( final SymbolController controller, final StackContainer element, final BasicViewElementFactory factory ) throws Exception { this.figure = new Layer (); this.figure.setOpaque ( false ); this.figure.setLayoutManager ( this.layout = new StackLayout () ); this.layout.setObserveVisibility ( true ); for ( final Primitive child : element.getChildren () ) { final Controller elementController = factory.create ( controller, child ); final IFigure childFigure = elementController.getFigure (); controller.addRawElement ( child.getName (), elementController ); this.figure.add ( childFigure ); } controller.addElement ( element, this ); }
public XYContainerController ( final SymbolController controller, final XYContainer element, final BasicViewElementFactory factory ) throws Exception { this.figure = new Layer (); this.figure.setOpaque ( false ); this.figure.setLayoutManager ( new XYLayout () ); for ( final XYChild child : element.getChildren () ) { final Controller elementController = factory.create ( controller, child.getElement () ); final IFigure childFigure = elementController.getFigure (); final Rectangle rect = factory.create ( child.getPosition (), child.getDimension () ); controller.addRawElement ( child.getName (), new XYChildController ( childFigure, rect ) ); this.figure.add ( childFigure, rect ); } controller.addElement ( element, this ); }
public XYContainerController ( final SymbolController controller, final XYContainer element, final BasicViewElementFactory factory ) throws Exception { this.figure = new Layer (); this.figure.setOpaque ( false ); this.figure.setLayoutManager ( new XYLayout () ); for ( final XYChild child : element.getChildren () ) { final Controller elementController = factory.create ( controller, child.getElement () ); final IFigure childFigure = elementController.getFigure (); final Rectangle rect = factory.create ( child.getPosition (), child.getDimension () ); controller.addRawElement ( child.getName (), new XYChildController ( childFigure, rect ) ); this.figure.add ( childFigure, rect ); } controller.addElement ( element, this ); }
public BorderContainerController ( final SymbolController controller, final BorderContainer element, final BasicViewElementFactory factory ) throws Exception { this.figure = new Layer (); this.figure.setOpaque ( false ); this.figure.setLayoutManager ( this.layout = new BorderLayout () ); this.layout.setHorizontalSpacing ( element.getHorizontalSpacing () ); this.layout.setVerticalSpacing ( element.getVerticalSpacing () ); for ( final BorderChild child : element.getChildren () ) { final Controller elementController = factory.create ( controller, child.getElement () ); final IFigure childFigure = elementController.getFigure (); controller.addRawElement ( child.getName (), new BorderChildController ( childFigure ) ); this.figure.add ( childFigure, convert ( child.getAlignment () ) ); } controller.addElement ( element, this ); }
public BorderContainerController ( final SymbolController controller, final BorderContainer element, final BasicViewElementFactory factory ) throws Exception { this.figure = new Layer (); this.figure.setOpaque ( false ); this.figure.setLayoutManager ( this.layout = new BorderLayout () ); this.layout.setHorizontalSpacing ( element.getHorizontalSpacing () ); this.layout.setVerticalSpacing ( element.getVerticalSpacing () ); for ( final BorderChild child : element.getChildren () ) { final Controller elementController = factory.create ( controller, child.getElement () ); final IFigure childFigure = elementController.getFigure (); controller.addRawElement ( child.getName (), new BorderChildController ( childFigure ) ); this.figure.add ( childFigure, convert ( child.getAlignment () ) ); } controller.addElement ( element, this ); }
panel.setOpaque(false);