congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
DefaultGraphModel.isGroup
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: uk.org.mygrid.taverna.scufl/scufl-ui

  /**
   * @param model
   * @param node
   * @return all the edges leaving the given <code>node</code>
   */
  public static Set getOutgoingEdges(GraphModel model, Object node)
  {
    Set result = new HashSet();
    Set edges = DefaultGraphModel.getEdges(model, new Object[] { node });
    Iterator it = edges.iterator();
    while (it.hasNext())
    {
      Object edge = it.next();
      if (!DefaultGraphModel.isGroup(model, edge))
      {
        Object source = model.getSource(edge);
        Object parent = model.getParent(source);
        if (source == node || parent == node)
          result.add(edge);
      }
    }
    return result;
  }
}
origin: uk.org.mygrid.taverna.scufl/scufl-ui

/**
 * @param model
 * @param node
 * @return all the edges entering the given <code>node</code>
 */
public static Set getIncomingEdges(GraphModel model, Object node)
{
  Set result = new HashSet();
  Set edges = DefaultGraphModel.getEdges(model, new Object[] { node });
  Iterator it = edges.iterator();
  while (it.hasNext())
  {
    Object edge = it.next();
    if (!DefaultGraphModel.isGroup(model, edge))
    {
      Object target = model.getTarget(edge);
      if (target == node || isParentOf(model, node, target))
        result.add(edge);
    }
  }
  return result;
}
origin: uk.org.mygrid.taverna.scufl.scufl-ui-components/scufl-interactive-diagram

Paint oldPaint = g2d.getPaint();
if (!DefaultGraphModel.isGroup(getScuflGraphModel(), view
    .getCell())) {
  g2d.setPaint(new GradientPaint(0, 0, getBackground(),
origin: net.sf.ingenias/ingeniasjgraphmod

graphForeground = graph.getForeground();
isEditing = graph.getEditingCell() == view.getCell();
isGroup = DefaultGraphModel.isGroup(graph.getModel(), view.getCell());
Boolean bool = (Boolean) graph
    .getClientProperty(CLIENTPROPERTY_SHOWFOLDINGICONS);
org.jgraph.graphDefaultGraphModelisGroup

Javadoc

Checks whether the cell has at least one child which is not a port. This implementation operates on the model, not taking into account visibility of cells. It returns true for groups regardless of their folded state.

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
  • connect
    Connects or disconnects the edge and port in this model based onremove. Subclassers should override
  • 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

  • Reading from database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • setContentView (Activity)
  • onCreateOptionsMenu (Activity)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • JFileChooser (javax.swing)
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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