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

项目: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;
}
项目:DarwinSPL    文件:DwFeatureModelEditPart.java   
@Override
protected IFigure createFigure() {
    ScalableFreeformLayeredPane layer = new ScalableFreeformLayeredPane();
    layer.setLayoutManager(new FreeformLayout());
    layer.setBorder(new LineBorder(1));
    layer.addLayoutListener(LayoutAnimator.getDefault());
    return layer;
}
项目: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    文件: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    文件:BandFigure.java   
/**
 * Instantiates a new band figure.
 */
public BandFigure(boolean drawColumn, MBand model) {
    super();
    setLayoutManager(new FreeformLayout());
    setOpaque(false);
    this.drawColumn = drawColumn;
    this.bandModel = model;
    createTexture();
}
项目:ermaster-nhit    文件:ERDiagramEditPart.java   
/**
 * {@inheritDoc}
 */
@Override
protected IFigure createFigure() {
    FreeformLayer layer = new FreeformLayer();
    layer.setLayoutManager(new FreeformLayout());

    return layer;
}
项目: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    文件:CubeEditPart.java   
protected IFigure createFigure( )
{
    Figure f = new FreeformLayer( );
    f.setLayoutManager( new FreeformLayout( ) );
    f.setBorder( new MarginBorder( 5 ) );
    return f;
}
项目:wt-studio    文件:BOModelDiagramEditPart.java   
@Override
protected IFigure createFigure()
{
    Figure figure = new FreeformLayer();
    figure.setLayoutManager(new FreeformLayout());
    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;
}
项目: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;
}
项目: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;
}
项目:bdf2    文件:SchemaFigure.java   
public SchemaFigure() {
    this.setLayoutManager(new FreeformLayout());
}
项目:DarwinSPL    文件:DwConfiguratorFeatureModelFigure.java   
public DwConfiguratorFeatureModelFigure(DwFeatureModelWrapped featureModel, DwFeatureModelConfiguratorViewer graphicalEditor) {
    this.featureModel = featureModel;
    this.graphicalEditor = graphicalEditor;

    setLayoutManager(new FreeformLayout());
}
项目:ForgedUI-Eclipse    文件:DiagramEditPart.java   
protected IFigure createFigure() {
    Figure f = new FreeformLayer();
    f.setLayoutManager(new FreeformLayout());
    f.setBorder(new MarginBorder(5));
    return f;
}
项目:PDFReporter-Studio    文件:ComponentFigure.java   
/**
 * Instantiates a new generic figure.
 */
public ComponentFigure() {
    super();
    setLayoutManager(new FreeformLayout());
}
项目:erflute    文件:ERDiagramEditPart.java   
@Override
protected IFigure createFigure() {
    final FreeformLayer layer = new FreeformLayer();
    layer.setLayoutManager(new FreeformLayout());
    return layer;
}
项目:erflute    文件:ERVirtualDiagramEditPart.java   
@Override
protected IFigure createFigure() {
    final FreeformLayer layer = new FreeformLayer();
    layer.setLayoutManager(new FreeformLayout());
    return layer;
}
项目:snaker-designer    文件:ProcessEditPart.java   
@Override
protected IFigure createFigure() {
    FreeformLayer layer = new FreeformLayer();
    layer.setLayoutManager(new FreeformLayout());
    return layer;
}
项目:xeda    文件:XedaDiagramFigure.java   
public XedaDiagramFigure() {
    setLayoutManager(new FreeformLayout());
}