Examples of showOnDiagram()


Examples of pl.tecna.gwt.connectors.client.elements.Connector.showOnDiagram()

   
    final Diagram diagram = new Diagram(boundaryPanel);

    boundaryPanel.add(new Label("Connectors example for GWT 2.4"), 10, 2);
    Connector connector1 = new Connector(50, 80, 150, 200, new SectionDecoration(DecorationType.ARROW_SOLID), new SectionDecoration(DecorationType.ARROW_SOLID));
    connector1.showOnDiagram(diagram);

    ArrayList<CornerPoint> cp = new ArrayList<CornerPoint>();
    cp.add(new CornerPoint(370, 200));
    cp.add(new CornerPoint(370, 120));
    cp.add(new CornerPoint(270, 120));
View Full Code Here

Examples of pl.tecna.gwt.connectors.client.elements.Connector.showOnDiagram()

    SectionDecoration endDecoration = new SectionDecoration(
        new Image("http://code.google.com/images/code_sm.png"),
        new Image("http://code.google.com/images/code_sm.png"));
    Connector connector2 = new Connector(350, 200, 270, 80, cp, startDecoration, endDecoration);
    connector2.style = ConnectorStyle.DASHED;
    connector2.showOnDiagram(diagram);

    Connector connector3 = new Connector(450, 120, 500, 80, new SectionDecoration(DecorationType.ARROW_SOLID), new SectionDecoration(DecorationType.ARROW_SOLID));
    connector3.style = ConnectorStyle.DOTTED;
    connector3.showOnDiagram(diagram);
View Full Code Here

Examples of pl.tecna.gwt.connectors.client.elements.Connector.showOnDiagram()

    connector2.style = ConnectorStyle.DASHED;
    connector2.showOnDiagram(diagram);

    Connector connector3 = new Connector(450, 120, 500, 80, new SectionDecoration(DecorationType.ARROW_SOLID), new SectionDecoration(DecorationType.ARROW_SOLID));
    connector3.style = ConnectorStyle.DOTTED;
    connector3.showOnDiagram(diagram);

    FocusPanel diamond = new FocusPanel();
    Image img = AbstractImagePrototype.create(ConnectorsBundle.INSTANCE.diamondImg()).createImage();
    img.getElement().getStyle().setDisplay(Display.BLOCK);
    diamond.setWidget(img);
View Full Code Here

Examples of pl.tecna.gwt.connectors.client.elements.Shape.showOnDiagram()

    boundaryPanel.add(label, 50, 250);
    boundaryPanel.add(label2, 450, 200);
    boundaryPanel.add(label3, 700, 500);

    Shape shapeForLabel = new Shape(label, CPShapeType.DIAMOND);
    shapeForLabel.showOnDiagram(diagram);
    shapeForLabel.setTitle("shapeForLabel");
    shapeForLabel.enableConnectionCreate(true);

    Shape shapeForLabel2 = new Shape(label2, CPShapeType.OVAL);
    shapeForLabel2.showOnDiagram(diagram);
View Full Code Here

Examples of pl.tecna.gwt.connectors.client.elements.Shape.showOnDiagram()

    shapeForLabel.showOnDiagram(diagram);
    shapeForLabel.setTitle("shapeForLabel");
    shapeForLabel.enableConnectionCreate(true);

    Shape shapeForLabel2 = new Shape(label2, CPShapeType.OVAL);
    shapeForLabel2.showOnDiagram(diagram);
    shapeForLabel2.setTitle("shapeForLabel2");
   
    Shape shapeForLabel3 = new Shape(label3, CPShapeType.RECTANGLE);
    shapeForLabel3.showOnDiagram(diagram);
    shapeForLabel3.setTitle("shapeForLabel");
View Full Code Here

Examples of pl.tecna.gwt.connectors.client.elements.Shape.showOnDiagram()

    Shape shapeForLabel2 = new Shape(label2, CPShapeType.OVAL);
    shapeForLabel2.showOnDiagram(diagram);
    shapeForLabel2.setTitle("shapeForLabel2");
   
    Shape shapeForLabel3 = new Shape(label3, CPShapeType.RECTANGLE);
    shapeForLabel3.showOnDiagram(diagram);
    shapeForLabel3.setTitle("shapeForLabel");
    shapeForLabel3.enableConnectionCreate(true);

    Shape shapeForDiamond = new Shape(diamond, CPShapeType.DIAMOND);
    shapeForDiamond.showOnDiagram(diagram);
View Full Code Here

Examples of pl.tecna.gwt.connectors.client.elements.Shape.showOnDiagram()

    shapeForLabel3.showOnDiagram(diagram);
    shapeForLabel3.setTitle("shapeForLabel");
    shapeForLabel3.enableConnectionCreate(true);

    Shape shapeForDiamond = new Shape(diamond, CPShapeType.DIAMOND);
    shapeForDiamond.showOnDiagram(diagram);
    shapeForDiamond.enableConnectionCreate(true);
    shapeForDiamond.setTitle("shapeForDiamond");
   
    Shape shapeForTask = new Shape(task, CPShapeType.RECTANGLE);
    shapeForTask.connectorsStyle = ConnectorStyle.DASHED;
View Full Code Here

Examples of pl.tecna.gwt.connectors.client.elements.Shape.showOnDiagram()

    shapeForDiamond.enableConnectionCreate(true);
    shapeForDiamond.setTitle("shapeForDiamond");
   
    Shape shapeForTask = new Shape(task, CPShapeType.RECTANGLE);
    shapeForTask.connectorsStyle = ConnectorStyle.DASHED;
    shapeForTask.showOnDiagram(diagram);
    shapeForTask.enableConnectionCreate(true);
    shapeForTask.setTitle("Shape for task");
   
  }
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.