Package net.sf.graphiti.ui.editparts

Examples of net.sf.graphiti.ui.editparts.GraphEditPart


   *            <LI>{@link org.eclipse.draw2d.PositionConstants#EAST}
   *            <LI>{@link org.eclipse.draw2d.PositionConstants#SOUTH}
   *            </UL>
   */
  public void automaticallyLayout(int direction) {
    GraphEditPart doc = (GraphEditPart) getGraphicalViewer()
        .getRootEditPart().getContents();
    doc.automaticallyLayoutGraphs(direction);
  }
View Full Code Here


   */
  @Override
  @SuppressWarnings("unchecked")
  public void run() {
    Object obj = getSelectedObjects().get(0);
    GraphEditPart part = null;
    if (obj instanceof GraphEditPart) {
      part = (GraphEditPart) obj;
    } else if (obj instanceof VertexEditPart) {
      part = (GraphEditPart) ((VertexEditPart) obj).getParent();
    }
View Full Code Here

TOP

Related Classes of net.sf.graphiti.ui.editparts.GraphEditPart

Copyright © 2018 www.massapicom. 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.