public Object beforeEncode(mxCodec enc,Object obj,Node node){
  return obj;
}

public Object beforeEncode ( mxCodec enc , Object obj , Node node ) { return obj ; }
hook for subclassers to pre - process the object before encoding . this returns the input object . the return value of this function is used in encode to perform the default encoding into the given node .
