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

How to use
isReference
method
in
com.mxgraph.io.mxChildChangeCodec

Best Java code snippets using com.mxgraph.io.mxChildChangeCodec.isReference (Showing top 2 results out of 315)

origin: com.github.vlsi.mxgraph/jgraphx

@Override
public Node afterEncode(mxCodec enc, Object obj, Node node)
{
  if (obj instanceof mxChildChange)
  {
    mxChildChange change = (mxChildChange) obj;
    Object child = change.getChild();
    if (isReference(obj, "child", child, true))
    {
      // Encodes as reference (id)
      mxCodec.setAttribute(node, "child", enc.getId(child));
    }
    else
    {
      // At this point, the encoder is no longer able to know which cells
      // are new, so we have to encode the complete cell hierarchy and
      // ignore the ones that are already there at decoding time. Note:
      // This can only be resolved by moving the notify event into the
      // execute of the edit.
      enc.encodeCell((mxICell) child, node, true);
    }
  }
  return node;
}
origin: org.tinyjee.jgraphx/jgraphx

@Override
public Node afterEncode(mxCodec enc, Object obj, Node node)
{
  if (obj instanceof mxChildChange)
  {
    mxChildChange change = (mxChildChange) obj;
    Object child = change.getChild();
    if (isReference(obj, "child", child, true))
    {
      // Encodes as reference (id)
      mxCodec.setAttribute(node, "child", enc.getId(child));
    }
    else
    {
      // At this point, the encoder is no longer able to know which cells
      // are new, so we have to encode the complete cell hierarchy and
      // ignore the ones that are already there at decoding time. Note:
      // This can only be resolved by moving the notify event into the
      // execute of the edit.
      enc.encodeCell((mxICell) child, node, true);
    }
  }
  return node;
}
com.mxgraph.iomxChildChangeCodecisReference

Popular methods of mxChildChangeCodec

    Popular in Java

    • Updating database using SQL prepared statement
    • getOriginalFilename (MultipartFile)
      Return the original filename in the client's filesystem.This may contain path information depending
    • getExternalFilesDir (Context)
    • orElseThrow (Optional)
      Return the contained value, if present, otherwise throw an exception to be created by the provided s
    • Set (java.util)
      A Set is a data structure which does not allow duplicate elements.
    • TimeZone (java.util)
      TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
    • CountDownLatch (java.util.concurrent)
      A synchronization aid that allows one or more threads to wait until a set of operations being perfor
    • Executor (java.util.concurrent)
      An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
    • JarFile (java.util.jar)
      JarFile is used to read jar entries and their associated data from jar files.
    • Runner (org.openjdk.jmh.runner)
    • Top 12 Jupyter Notebook extensions
    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