@Override protected IFigure createFigure() { Figure f = new FreeformLayer(); f.setBorder(new MarginBorder(3)); f.setLayoutManager(new FreeformLayout()); // Create the static router for the connection layer ConnectionLayer connLayer = (ConnectionLayer) getLayer(LayerConstants.CONNECTION_LAYER); connLayer.setConnectionRouter(new ManhattanConnectionRouter()); return f; }
@Override protected IFigure createFigure() { Figure figure = new FreeformLayer(); figure.setBorder(new MarginBorder(3)); figure.setLayoutManager(new FreeformLayout()); return figure; }
@Override protected IFigure createFigure() { ScalableFreeformLayeredPane layer = new ScalableFreeformLayeredPane(); layer.setLayoutManager(new FreeformLayout()); layer.setBorder(new LineBorder(1)); layer.addLayoutListener(LayoutAnimator.getDefault()); return layer; }
/** * {@inheritDoc} */ @Override protected IFigure createFigure() { final FreeformLayer layer = new FreeformLayer(); layer.setLayoutManager(new FreeformLayout()); return layer; }
/** * {@inheritDoc} */ @Override protected IFigure createFigure() { FreeformLayer layer = new FreeformLayer(); layer.setLayoutManager(new FreeformLayout()); return layer; }
public PickerColumnFigure() { pane = new FreeformLayer(); pane.setLayoutManager(new FreeformLayout()); setLayoutManager(new StackLayout()); container = new TitaniumFigure(); container.setLayoutManager(new FreeformLayout()); pane.add(container); scrollpane = new ScrollPane(); scrollpane.setHorizontalScrollBarVisibility(ScrollPane.NEVER); scrollpane.setVerticalScrollBarVisibility(ScrollPane.NEVER); scrollpane.setViewport(new FreeformViewport()); scrollpane.setContents(pane); add(scrollpane); }
public ScrollViewFigure() { pane = new FreeformLayer(); pane.setLayoutManager(new FreeformLayout()); setLayoutManager(new StackLayout()); container = new TitaniumFigure(); container.setLayoutManager(new FreeformLayout()); pane.add(container); scrollpane = new ScrollPane(); scrollpane.setScrollBarVisibility(ScrollPane.AUTOMATIC); scrollpane.setViewport(new FreeformViewport()); scrollpane.setContents(pane); add(scrollpane); }
/** * @see org.eclipse.gef.editparts.AbstractGraphicalEditPart#createFigure() */ @Override protected IFigure createFigure() { Figure figure = new FreeformLayer(); figure.setBorder(new MarginBorder(10)); figure.setLayoutManager(new FreeformLayout()); figure.setOpaque(false); Diagram diagram = null; if (getModel() instanceof Diagram) { diagram = (Diagram) getModel(); if (!(diagram.getType().equals(DiagramType.SEQUENCE_DIAGRAM))) { for (AbstractNode node : diagram.getNodeList()) { if (node instanceof NotationNode) { ViewModelUtil.clearGarbageNode(node); ViewModelUtil.setModelInfo((NotationNode) node); } } for ( AbstractConnection connection : diagram.getConnectionList() ) { ViewModelUtil.clearGarbageNode(connection); } } } figure.addLayoutListener(new PrintPreviewLayoutListener()); return figure; }
/** * @see org.eclipse.gef.editparts.AbstractGraphicalEditPart#createFigure() */ @Override protected IFigure createFigure() { Figure fiugre = new FreeformLayer(); fiugre.setBorder(new MarginBorder(10)); fiugre.setLayoutManager(new FreeformLayout()); fiugre.setOpaque(false); LayoutManager layout = new ActivityDiagramLayout(); fiugre.setLayoutManager(layout); return fiugre; }
/** * Instantiates a new band figure. */ public BandFigure(boolean drawColumn, MBand model) { super(); setLayoutManager(new FreeformLayout()); setOpaque(false); this.drawColumn = drawColumn; this.bandModel = model; createTexture(); }
@Override protected IFigure createFigure() { Figure f = new FreeformLayer(); f.setLayoutManager(new FreeformLayout()); f.setOpaque(true); return f; }
@Override protected IFigure createFigure() { IFigure f = new FreeformLayer(); f.setLayoutManager(new FreeformLayout()); f.setOpaque(true); return f; }
protected IFigure createFigure( ) { Figure f = new FreeformLayer( ); f.setLayoutManager( new FreeformLayout( ) ); f.setBorder( new MarginBorder( 5 ) ); return f; }
@Override protected IFigure createFigure() { Figure figure = new FreeformLayer(); figure.setLayoutManager(new FreeformLayout()); return figure; }
void constructCanvas( final Color color ) { canvas = new FreeformLayer(); setContents( canvas ); canvas.setLayoutManager( new FreeformLayout() ); canvas.setOpaque( true ); canvas.setBackgroundColor( color ); }
@Override protected IFigure createFigure() { FreeformLayer layer = new FreeformLayer(); layer.setLayoutManager(new FreeformLayout()); layer.setBorder(new LineBorder(1)); return layer; }
/** * Overwrite this function and add the connection layer before the primary layer. This will make the nodes display on top of the connections. */ protected LayeredPane createPrintableLayers() { FreeformLayeredPane layeredPane = new FreeformLayeredPane(); FreeformLayer comp = new FreeformLayer(); comp.setLayoutManager(new FreeformLayout()); layeredPane.add(comp, COMPONENT_LAYER); layeredPane.add(new FreeformLayer(), PRIMARY_LAYER); layeredPane.add(new ConnectionLayer(), CONNECTION_LAYER); return layeredPane; }
/** * Creates the freeform layout * * @see org.eclipse.gef.editparts.AbstractGraphicalEditPart#createFigure() */ protected IFigure createFigure() { FreeformLayer layer = new FreeformLayer(); layer.setLayoutManager(new FreeformLayout()); // layer.setBorder(new LineBorder(1)); return layer; }
protected IFigure createFigure() { FreeformLayer layer = new FreeformLayer(); layer.setLayoutManager(new FreeformLayout()); layer.setBorder(new LineBorder(2)); layer.setBackgroundColor(ColorManager.WHITE); layer.setOpaque(true); if (kpiViewObjects != null && kpiViewObjects.size() > 0) { KPIViewObject theLastFigure = ((KPIViewObject) kpiViewObjects.get(kpiViewObjects.size() - 1)); layer.getBounds().height = KPIViewObject.SHIFT_Y * 2 + theLastFigure.getY() + theLastFigure.getHeight(); } return layer; }
protected IFigure createFigure() { FreeformLayer layer = new FreeformLayer(); layer.setLayoutManager(new FreeformLayout()); layer.setBorder(new LineBorder(1)); return layer; }
/** * Overwrite this function and add the connection layer before the primary layer. This will make the nodes display on top of the connections. */ protected LayeredPane createPrintableLayers() { FreeformLayeredPane layeredPane = new FreeformLayeredPane(); FreeformLayer comp = new FreeformLayer(); comp.setLayoutManager(new FreeformLayout()); layeredPane.add(comp, COMPONENT_LAYER); layeredPane.add(new ConnectionLayer(), CONNECTION_LAYER); layeredPane.add(new FreeformLayer(), PRIMARY_LAYER); return layeredPane; }
protected IFigure createFigure() { Figure f = new FreeformLayer(); f.setBorder(new MarginBorder(3)); f.setLayoutManager(new FreeformLayout()); // Create the static router for the connection layer ConnectionLayer connLayer = (ConnectionLayer) getLayer(LayerConstants.CONNECTION_LAYER); connLayer.setConnectionRouter(new ShortestPathConnectionRouter(f)); return f; }
public SchemaFigure() { this.setLayoutManager(new FreeformLayout()); }
public DwConfiguratorFeatureModelFigure(DwFeatureModelWrapped featureModel, DwFeatureModelConfiguratorViewer graphicalEditor) { this.featureModel = featureModel; this.graphicalEditor = graphicalEditor; setLayoutManager(new FreeformLayout()); }
protected IFigure createFigure() { Figure f = new FreeformLayer(); f.setLayoutManager(new FreeformLayout()); f.setBorder(new MarginBorder(5)); return f; }
/** * Instantiates a new generic figure. */ public ComponentFigure() { super(); setLayoutManager(new FreeformLayout()); }
@Override protected IFigure createFigure() { final FreeformLayer layer = new FreeformLayer(); layer.setLayoutManager(new FreeformLayout()); return layer; }
@Override protected IFigure createFigure() { FreeformLayer layer = new FreeformLayer(); layer.setLayoutManager(new FreeformLayout()); return layer; }
public XedaDiagramFigure() { setLayoutManager(new FreeformLayout()); }