Java 类org.eclipse.draw2d.FreeformLayer 实例源码

项目:gemoc-studio    文件:BranchEditPart.java   
@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;
}
项目:wt-studio    文件:TableModelFigure.java   
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);
}
项目:gemoc-studio    文件:TimelineWindowEditPart.java   
@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;
}
项目:gemoc-studio    文件:ChoiceEditPart.java   
@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;
}
项目:Hydrograph    文件:ContainerEditPart.java   
@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;
}
项目:bdf2    文件:ProcessDefinitionEditPart.java   
@Override
protected IFigure createFigure() {
    Figure figure = new FreeformLayer();
    figure.setBorder(new MarginBorder(3));
    figure.setLayoutManager(new FreeformLayout());
    return figure;
}
项目:ermasterr    文件:ERDiagramEditPart.java   
/**
 * {@inheritDoc}
 */
@Override
protected IFigure createFigure() {
    final FreeformLayer layer = new FreeformLayer();
    layer.setLayoutManager(new FreeformLayout());

    return layer;
}
项目:ermaster-k    文件:ERDiagramEditPart.java   
/**
 * {@inheritDoc}
 */
@Override
protected IFigure createFigure() {
    FreeformLayer layer = new FreeformLayer();
    layer.setLayoutManager(new FreeformLayout());

    return layer;
}
项目:ForgedUI-Eclipse    文件:PickerColumnFigure.java   
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);
}
项目:ForgedUI-Eclipse    文件:ScrollViewFigure.java   
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);
}
项目:NEXCORE-UML-Modeler    文件:DiagramRootEditPart.java   
/**
 * @see org.eclipse.gef.editparts.ScalableFreeformRootEditPart#createScaledLayers()
 */
protected ScalableFreeformLayeredPane createScaledLayers() {

    ScalableFreeformLayeredPane layers = super.createScaledLayers();
    layers.add(new FreeformLayer(), PRINT_PREVIEW_LAYER, 0);
    return layers;
}
项目:NEXCORE-UML-Modeler    文件:AbstractDiagramEditPart.java   
/**
 * @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;
}
项目:NEXCORE-UML-Modeler    文件:ActivityDiagramEditPart.java   
/**
 * @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;
}
项目:PDFReporter-Studio    文件:QueryEditPart.java   
@Override
protected IFigure createFigure() {
    FreeformLayer fig = new FreeformLayer();
    fig.setLayoutManager(new GraphLayoutManager(this));
    fig.setOpaque(true);
    return fig;
}
项目:PDFReporter-Studio    文件:MainDesignerRootEditPart.java   
@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;
}
项目:ermaster-nhit    文件:ERDiagramEditPart.java   
/**
 * {@inheritDoc}
 */
@Override
protected IFigure createFigure() {
    FreeformLayer layer = new FreeformLayer();
    layer.setLayoutManager(new FreeformLayout());

    return layer;
}
项目:gef-gwt    文件:ScalableFreeformRootEditPart.java   
/**
 * @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);
}
项目:gef-gwt    文件:FreeformGraphicalRootEditPart.java   
/**
 * 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);
}
项目:gef-gwt    文件:FreeformGraphicalRootEditPart.java   
/**
 * 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;
}
项目:snaker-designer    文件:TaskFieldEditPart.java   
@Override
protected IFigure createFigure() {
    Figure f = new FreeformLayer();
    f.setLayoutManager(new FreeformLayout());
    f.setOpaque(true);
    return f;
}
项目:snaker-designer    文件:FormEditPart.java   
@Override
protected IFigure createFigure() {
    IFigure f = new FreeformLayer();
    f.setLayoutManager(new FreeformLayout());
    f.setOpaque(true);
    return f;
}
项目:birt    文件:CrosstabTableEditPart.java   
/**
 * 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 );
}
项目:birt    文件:CubeEditPart.java   
protected IFigure createFigure( )
{
    Figure f = new FreeformLayer( );
    f.setLayoutManager( new FreeformLayout( ) );
    f.setBorder( new MarginBorder( 5 ) );
    return f;
}
项目:birt    文件:TableEditPart.java   
/**
 * 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 );
}
项目:birt    文件:AbstractTableEditPart.java   
/**
 * 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;
}
项目:birt    文件:ReportRootEditPart.java   
/**
 * @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 );
}
项目:wt-studio    文件:DiagramPart.java   
@Override
protected IFigure createFigure()
{
    Figure figure = new FreeformLayer();
    figure.setLayoutManager(new DiagramFreeFormLayout());
    return figure;
}
项目:wt-studio    文件:BOModelDiagramEditPart.java   
@Override
protected IFigure createFigure()
{
    Figure figure = new FreeformLayer();
    figure.setLayoutManager(new FreeformLayout());
    return figure;
}
项目:wt-studio    文件:DiagramEditPart.java   
@Override
protected IFigure createFigure()
{
    Figure figure = new FreeformLayer();
    figure.setLayoutManager(new DiagramFreeFormLayout());
    return figure;
}
项目:wt-studio    文件:GhostElementEditPart.java   
@Override
protected IFigure createFigure()
{
    Figure figure = new FreeformLayer();
    figure.setLayoutManager(new FreeformLayout());
    return figure;
}
项目:chrysalix    文件:FocusTreeLightweight.java   
void constructCanvas( final Color color ) {
    canvas = new FreeformLayer();
    setContents( canvas );
    canvas.setLayoutManager( new FreeformLayout() );
    canvas.setOpaque( true );
    canvas.setBackgroundColor( color );
}
项目:q7.quality.mockups    文件:DiagramWithCustomId.java   
@Override
protected IFigure createFigure() {
    FreeformLayer layer = new FreeformLayer();
    layer.setLayoutManager(new FreeformLayout());
    layer.setBorder(new LineBorder(1));
    return layer;
}
项目:seg.jUCMNav    文件:GrlConnectionOnBottomRootEditPart.java   
/**
 * 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;

}
项目:seg.jUCMNav    文件:URNDiagramEditPart.java   
/**
 * 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;
}
项目:seg.jUCMNav    文件:AbstractKPIViewEditPart.java   
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;
}
项目:seg.jUCMNav    文件:KPIViewRootEditPart.java   
protected IFigure createFigure() {
    FreeformLayer layer = new FreeformLayer();

    layer.setLayoutManager(new FreeformLayout());
    layer.setBorder(new LineBorder(1));
    return layer;
}
项目:seg.jUCMNav    文件:UCMConnectionOnBottomRootEditPart.java   
/**
 * 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;
}
项目:relations    文件:RelationsRootEditPart.java   
@Override
protected LayeredPane createPrintableLayers() {
    final FreeformLayeredPane layeredPane = new FreeformLayeredPane();
    layeredPane.add(new ConnectionLayer(), CONNECTION_LAYER);
    layeredPane.add(new FreeformLayer(), PRIMARY_LAYER);
    return layeredPane;
}
项目:lunifera-sharky-m2m    文件:DiagramEditPart.java   
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;
}
项目:lunifera-sharky-m2m    文件:HumanContainerEditPart.java   
@Override
protected IFigure createFigure() {
  FreeformLayer layer = new FreeformLayer();
  layer.setLayoutManager(new FreeformLayout());
  layer.setBorder(new LineBorder(1));
  return layer;
}