コード例 #1
0
 private InteractionEvent mockUserEvent(String handle, String kind, String origin, float scale) {
   InteractionEvent e =
       new InteractionEvent(
           InteractionEvent.Kind.MANIPULATION,
           kind,
           handle,
           origin,
           scale * ContextCore.getCommonContextScaling().getLandmark());
   e.getInterestContribution();
   return e;
 }
コード例 #2
0
 @Override
 public void interactionObserved(InteractionEvent event) {
   String id = event.getOriginId();
   if (UserActionData.isInterestedEvent(id)) {
     UserActionData.setPendingEvent(id);
     UIUtil.reconcileActiveEditor();
   }
 }