public void notifyObservers(Variant value) { System.out.println("MyObservableJavaComObject.notifyObservers, value= " + value.getValue()); for (Iterator i = _observers.iterator(); i.hasNext(); ) { IUnknown observer = (IUnknown) i.next(); try { Automation automation = new Automation(observer, true); automation.invoke("update", new Variant[] {value}); } catch (Exception e) { e.printStackTrace(); } } }
public VariantBool init() { Parameter[] parameters = new Parameter[0]; Object result = Automation.invokeDispatch(this, "Init", parameters, VariantBool.class); return (VariantBool) result; }
public BStr loadUsers() { Parameter[] parameters = new Parameter[0]; Object result = Automation.invokeDispatch(this, "LoadUsers", parameters, BStr.class); return (BStr) result; }
public VariantBool startTracking(Int32 /*[in]*/ skeletonID) { Parameter[] parameters = new Parameter[] {skeletonID}; Object result = Automation.invokeDispatch(this, "StartTracking", parameters, VariantBool.class); return (VariantBool) result; }
public VariantBool updateUser(BStr /*[in]*/ name, Int32 /*[in]*/ skeletonID) { Parameter[] parameters = new Parameter[] {name == null ? (Parameter) PTR_NULL : name, skeletonID}; Object result = Automation.invokeDispatch(this, "UpdateUser", parameters, VariantBool.class); return (VariantBool) result; }
public void recordGesture(BStr /*[in]*/ gestureName, BStr /*[in]*/ ctxt) { Parameter[] parameters = new Parameter[] { gestureName == null ? (Parameter) PTR_NULL : gestureName, ctxt == null ? (Parameter) PTR_NULL : ctxt }; Automation.invokeDispatch(this, "RecordGesture", parameters, void.class); }
public void decAngle() { Parameter[] parameters = new Parameter[0]; Automation.invokeDispatch(this, "DecAngle", parameters, void.class); }
public void speechRecognition(VariantBool /*[in]*/ on) { Parameter[] parameters = new Parameter[] {on}; Automation.invokeDispatch(this, "SpeechRecognition", parameters, void.class); }
public void setContext(BStr /*[in]*/ contextID) { Parameter[] parameters = new Parameter[] {contextID == null ? (Parameter) PTR_NULL : contextID}; Automation.invokeDispatch(this, "SetContext", parameters, void.class); }
public void uninit() { Parameter[] parameters = new Parameter[0]; Automation.invokeDispatch(this, "Uninit", parameters, void.class); }
public void delUser(BStr /*[in]*/ User) { Parameter[] parameters = new Parameter[] {User == null ? (Parameter) PTR_NULL : User}; Automation.invokeDispatch(this, "DelUser", parameters, void.class); }
public void setDefaultHand(VariantBool /*[in]*/ def) { Parameter[] parameters = new Parameter[] {def}; Automation.invokeDispatch(this, "SetDefaultHand", parameters, void.class); }
public void storeGestures() { Parameter[] parameters = new Parameter[0]; Automation.invokeDispatch(this, "StoreGestures", parameters, void.class); }
public void stopGestureRecognition() { Parameter[] parameters = new Parameter[0]; Automation.invokeDispatch(this, "StopGestureRecognition", parameters, void.class); }