Package com.jgraph.editor

Examples of com.jgraph.editor.JGraphEditorKit


  public MyToolbox() {
    super();

    redirector = new MyMarqueeRedirector();

    JGraphEditorKit graphEditorKit = WorkflowPanel.graphEditor.getKit();
    selectTool = graphEditorKit.getTool(JGraphpad.NAME_SELECTTOOL);  
    edgeTool = (JGraphpadEdgeTool)
      graphEditorKit.getTool(JGraphpad.NAME_EDGETOOL)
    orthogonalTool = (JGraphpadEdgeTool)
      graphEditorKit.getTool(JGraphpad.NAME_ORTHOGONALEDGETOOL);
    textTool = (JGraphpadVertexTool)
      graphEditorKit.getTool(JGraphpad.NAME_TEXTTOOL)
    vertexTool = (JGraphpadVertexTool)
      graphEditorKit.getTool(JGraphpad.NAME_VERTEXTOOL)

    DefaultGraphCell defaultGraphCell = (DefaultGraphCell) vertexTool.getPrototype();
    AttributeMap vertexAttributes = defaultGraphCell.getAttributes();
    vertexAttributes.put(CellType.CELL_TYPE_KEY, CellType.CELL_TYPE_ACTION);
View Full Code Here


   * @param editor
   *            The editor for which to create an editor kit.
   * @return Returns a configured editor kit for the specified editor.
   */
  protected JGraphEditorKit createKit(JGraphEditor editor) {
    JGraphEditorKit kit = new JGraphEditorKit();
    configureKit(editor, kit);
    return kit;
  }
View Full Code Here

TOP

Related Classes of com.jgraph.editor.JGraphEditorKit

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.