Codota Logo
mxChildChangeCodec.isReference
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
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

    • Reading from database using SQL prepared statement
    • startActivity (Activity)
    • getApplicationContext (Context)
    • getOriginalFilename (MultipartFile)
      Return the original filename in the client's filesystem.This may contain path information depending
    • Runnable (java.lang)
      Represents a command that can be executed. Often used to run code in a different Thread.
    • ResultSet (java.sql)
      An interface for an object which represents a database table entry, returned as the result of the qu
    • SortedMap (java.util)
      A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
    • Semaphore (java.util.concurrent)
      A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
    • ThreadPoolExecutor (java.util.concurrent)
      An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
    • JCheckBox (javax.swing)
    Codota Logo
    • Products

      Search for Java codeSearch for JavaScript codeEnterprise
    • IDE Plugins

      IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Codota for your IDE now