Package org.jgraph.plaf

Examples of org.jgraph.plaf.GraphUI


   * @return true if the user is currently editing a cell
   * @see #getSelectionCell
   *
   */
  public boolean isEditing() {
    GraphUI graph = getUI();
    if (graph != null)
      return graph.isEditing(this);
    return false;
  }
View Full Code Here


   *
   * @return true if editing was in progress and is now stopped, false if
   *         editing was not in progress
   */
  public boolean stopEditing() {
    GraphUI graph = getUI();
    if (graph != null)
      return graph.stopEditing(this);
    return false;
  }
View Full Code Here

  /**
   * Cancels the current editing session. Has no effect if the graph isn't
   * being edited.
   */
  public void cancelEditing() {
    GraphUI graph = getUI();
    if (graph != null)
      graph.cancelEditing(this);
  }
View Full Code Here

   * Selects the specified cell and initiates editing. The edit-attempt fails
   * if the <code>CellEditor</code> does not allow editing for the specified
   * item.
   */
  public void startEditingAtCell(Object cell) {
    GraphUI graph = getUI();
    if (graph != null)
      graph.startEditingAtCell(this, cell);
  }
View Full Code Here

   * Returns the cell that is currently being edited.
   *
   * @return the cell being edited
   */
  public Object getEditingCell() {
    GraphUI graph = getUI();
    if (graph != null)
      return graph.getEditingCell(this);
    return null;
  }
View Full Code Here

        r[i] = new Rectangle2D.Double();
      invalidate();
    }

    public boolean isConstrainedSizeEvent(MouseEvent e) {
      GraphUI ui = graph.getUI();
      if (ui instanceof BasicGraphUI)
        return ((BasicGraphUI) ui).isConstrainedMoveEvent(e);
      return false;
    }
View Full Code Here

      }
      return false;
    }

    public boolean isConstrainedMoveEvent(MouseEvent e) {
      GraphUI ui = graph.getUI();
      if (ui instanceof BasicGraphUI)
        return ((BasicGraphUI) ui).isConstrainedMoveEvent(e);
      return false;
    }
View Full Code Here

      }
      return false;
    }

    public boolean isConstrainedMoveEvent(MouseEvent e) {
      GraphUI ui = graph.getUI();
      if (ui instanceof BasicGraphUI)
        return ((BasicGraphUI) ui).isConstrainedMoveEvent(e);
      return false;
    }
View Full Code Here

        r[i] = new Rectangle2D.Double();
      invalidate();
    }

    public boolean isConstrainedSizeEvent(MouseEvent e) {
      GraphUI ui = graph.getUI();
      if (ui instanceof BasicGraphUI)
        return ((BasicGraphUI) ui).isConstrainedMoveEvent(e);
      return false;
    }
View Full Code Here

   * @return true if the user is currently editing a cell
   * @see #getSelectionCell
   *
   */
  public boolean isEditing() {
    GraphUI graph = getUI();
    if (graph != null)
      return graph.isEditing(this);
    return false;
  }
View Full Code Here

TOP

Related Classes of org.jgraph.plaf.GraphUI

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.