congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
DefaultGraphModel.connect
Code IndexAdd Tabnine to your IDE (free)

How to use
connect
method
in
org.jgraph.graph.DefaultGraphModel

Best Java code snippets using org.jgraph.graph.DefaultGraphModel.connect (Showing top 2 results out of 315)

origin: net.sf.ingenias/editor

  previousPort = (Port) ( (Edge) edge).getTarget();
super.connect(edge, port, isSource, insert);
  if ( (isSource && this.acceptsSource(edge, port)) ||
      (!isSource && this.acceptsTarget(edge, port))) {
    super.connect(edge, port, isSource, insert);
  super.connect(edge, previousPort, false, false);
  previousPort = null;
origin: net.sf.ingenias/ingeniasjgraphmod

/**
 * Inserts the specified connection into the model.
 */
protected void handleConnection(ConnectionSet.Connection c,
    boolean establish) {
  Object edge = c.getEdge();
  Object port = (establish) ? c.getPort()
      : (c.isSource()) ? getSource(edge) : getTarget(edge);
  connect(edge, port, c.isSource(), establish);
}
org.jgraph.graphDefaultGraphModelconnect

Javadoc

Connects or disconnects the edge and port in this model based on remove. Subclassers should override this to update connectivity datastructures.

Popular methods of DefaultGraphModel

  • <init>
    Constructs a model using the specified information to construct the cells, attributes and connection
  • getEdges
    Returns the set of all connected edges to cells or their descendants. The passed-in cells are never
  • getRoots
    Returns the roots in cells by checking if their parent isnull. This implementation only uses the Gra
  • isGroup
    Checks whether the cell has at least one child which is not a port. This implementation operates on
  • edit
    Applies attributes and the connection changes to the model. The initial edits that triggered the ca
  • getAll
    Returns all cells of the model in an array.
  • getAttributes
    Returns a Map that represents the attributes for the specified cell. This attributes have precedence
  • getDescendants
    Flattens the given array of root cells by adding the roots and their descandants. The resulting set
  • getRootsAsCollection
    Returns the roots of the specified model as a collection. This implementation uses the GraphModel in
  • addUndoableEditListener
  • cloneCell
    Returns a deep clone of the specified cells, including all children.
  • cloneUserObject
    Clones the user object. Helper method that is invoked from cloneCells. You must use cloneCells (or c
  • cloneCell,
  • cloneUserObject,
  • createEdit,
  • createLayerEdit,
  • createRemoveEdit,
  • fireGraphChanged,
  • getChildCount,
  • getEdgesBetween,
  • getGraphModelListeners

Popular in Java

  • Reactive rest calls using spring rest template
  • putExtra (Intent)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (Timer)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now