Examples of JGraphEditorKit


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

Examples of com.jgraph.editor.JGraphEditorKit

   * @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
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.