@Override protected IFigure createFigure() { final LineLayout layout = new LineLayout(); layout.setHorizontal(true); layout.setMajorAlignment(FlowLayout.ALIGN_TOPLEFT); layout.setMinorAlignment(FlowLayout.ALIGN_BOTTOMRIGHT); layout.setMinorSpacing(SPACING); layout.setMargin(MARGIN); FreeformLayer res = new FreeformLayer(); final Label toolTip = new Label(); toolTip.setFont(JFaceResources.getFont(JFaceResources.TEXT_FONT)); toolTip.setBackgroundColor(ColorConstants.tooltipBackground); toolTip.setForegroundColor(ColorConstants.tooltipForeground); toolTip.setText(getModel().getTimelineWindow().getProvider().getTextAt(getModel().getBranch())); res.setToolTip(toolTip); res.setLayoutManager(layout); return res; }
public TableModelFigure() { ToolbarLayout layout = new ToolbarLayout(); layout.setHorizontal(true); layout.setSpacing(10); layout.setMinorAlignment(ToolbarLayout.ALIGN_TOPLEFT); setLayoutManager(new FillLayout()); setOpaque(true); setBackgroundColor(ColorConstants.white); border = new FrameBorder("列表"); border.setLabel("Block"); this.setBorder(border); ScrollPane scrollpane = new ScrollPane(); scrollpane.setHorizontalScrollBarVisibility(1); scrollpane.setVerticalScrollBarVisibility(0); headerFigure = new FreeformLayer(); headerFigure.setLayoutManager(new ScrollAreaLayout()); headerFigure.setBackgroundColor(ColorConstants.white); add(scrollpane); scrollpane.setViewport(new FreeformViewport()); scrollpane.setContents(headerFigure); }
@Override protected IFigure createFigure() { final LineLayout layout = new LineLayout(); layout.setHorizontal(false); layout.setMajorAlignment(FlowLayout.ALIGN_TOPLEFT); layout.setMinorAlignment(FlowLayout.ALIGN_TOPLEFT); layout.setMinorSpacing(SPACING); layout.setMargin(MARGIN); FreeformLayer res = new FreeformLayer(); res.setLayoutManager(layout); return res; }
@Override protected IFigure createFigure() { final LineLayout layout = new LineLayout(); layout.setHorizontal(false); layout.setMajorAlignment(FlowLayout.ALIGN_TOPLEFT); layout.setMinorAlignment(FlowLayout.ALIGN_TOPLEFT); layout.setMinorSpacing(SPACING); FreeformLayer res = new FreeformLayer(); res.setLayoutManager(layout); label = new Label(); res.add(label); return res; }
@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; }
/** * {@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.ScalableFreeformRootEditPart#createScaledLayers() */ protected ScalableFreeformLayeredPane createScaledLayers() { ScalableFreeformLayeredPane layers = super.createScaledLayers(); layers.add(new FreeformLayer(), PRINT_PREVIEW_LAYER, 0); return layers; }
/** * @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; }
@Override protected IFigure createFigure() { FreeformLayer fig = new FreeformLayer(); fig.setLayoutManager(new GraphLayoutManager(this)); fig.setOpaque(true); return fig; }
@Override protected ScalableFreeformLayeredPane createScaledLayers() { ScalableFreeformLayeredPane layers = new J2DScalableFreeformLayeredPane(); // layers.add(createGridLayer(), GRID_LAYER); layers.add(getPrintableLayers(), PRINTABLE_LAYERS); layers.add(new FeedbackLayer(), SCALED_FEEDBACK_LAYER); layers.add(new FreeformLayer(), REPORT_LAYER); layers.add(new FreeformLayer(), SECTIONS_LAYER); layers.add(new FreeformLayer(), ELEMENTS_LAYER); return layers; }
/** * @see FreeformGraphicalRootEditPart#createLayers(LayeredPane) */ protected void createLayers(LayeredPane layeredPane) { layeredPane.add(getScaledLayers(), SCALABLE_LAYERS); layeredPane.add(new FreeformLayer(), HANDLE_LAYER); layeredPane.add(new FeedbackLayer(), FEEDBACK_LAYER); layeredPane.add(new GuideLayer(), GUIDE_LAYER); }
/** * Creates the top-most set of layers on the given layered pane. * * @param layeredPane * the parent for the created layers */ protected void createLayers(LayeredPane layeredPane) { layeredPane.add(createGridLayer(), GRID_LAYER); layeredPane.add(getPrintableLayers(), PRINTABLE_LAYERS); layeredPane.add(new FreeformLayer(), HANDLE_LAYER); layeredPane.add(new FeedbackLayer(), FEEDBACK_LAYER); layeredPane.add(new GuideLayer(), GUIDE_LAYER); }
/** * Creates a layered pane and the layers that should be printed. * * @see org.eclipse.gef.print.PrintGraphicalViewerOperation * @return a new LayeredPane containing the printable layers */ protected LayeredPane createPrintableLayers() { FreeformLayeredPane layeredPane = new FreeformLayeredPane(); layeredPane.add(new FreeformLayer(), PRIMARY_LAYER); layeredPane.add(new ConnectionLayer(), CONNECTION_LAYER); return layeredPane; }
@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; }
/** * Creates the top-most set of layers on the given layered pane. * * @param layeredPane * the parent for the created layers */ protected void createLayers( LayeredPane layeredPane ) { Figure figure = new FreeformLayer( ); figure.setOpaque( false ); layeredPane.add( figure, CELL_HANDLE_LAYER ); layeredPane.add( getPrintableLayers( ), PRINTABLE_LAYERS ); layeredPane.add( new FreeformLayer( ), HANDLE_LAYER ); layeredPane.add( new GuideLayer( ), GUIDE_LAYER ); }
protected IFigure createFigure( ) { Figure f = new FreeformLayer( ); f.setLayoutManager( new FreeformLayout( ) ); f.setBorder( new MarginBorder( 5 ) ); return f; }
/** * Creates the top-most set of layers on the given layered pane. * * @param layeredPane * the parent for the created layers */ protected void createLayers( LayeredPane layeredPane ) { layeredPane.add( createGridLayer( ), GRID_LAYER ); layeredPane.add( getPrintableLayers( ), PRINTABLE_LAYERS ); layeredPane.add( new FreeformLayer( ), HANDLE_LAYER ); layeredPane.add( new GuideLayer( ), GUIDE_LAYER ); }
/** * Creates a layered pane and the layers that should be printed. * * @see org.eclipse.gef.print.PrintGraphicalViewerOperation * @return a new LayeredPane containing the printable layers */ protected LayeredPane createPrintableLayers( ) { FreeformLayeredPane layeredPane = new FreeformLayeredPane( ); FreeformLayer layer = new FreeformLayer( ); layer.setLayoutManager( new TableLayout( this ) ); layeredPane.add( layer, PRIMARY_LAYER ); layeredPane.add( new TableBorderLayer( this ), BORDER_LAYER ); return layeredPane; }
/** * @see FreeformGraphicalRootEditPart#createLayers(LayeredPane) */ protected void createLayers( LayeredPane layeredPane ) { layeredPane.add( getScaledLayers( ), SCALABLE_LAYERS ); layeredPane.add( new FreeformLayer( ), HANDLE_LAYER ); layeredPane.add( new FeedbackLayer( ), FEEDBACK_LAYER ); layeredPane.add( new GuideLayer( ), GUIDE_LAYER ); }
@Override protected IFigure createFigure() { Figure figure = new FreeformLayer(); figure.setLayoutManager(new DiagramFreeFormLayout()); return figure; }
@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; }
@Override protected LayeredPane createPrintableLayers() { final FreeformLayeredPane layeredPane = new FreeformLayeredPane(); 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; }