Ejemplo n.º 1
0
 public void onAddPose(Pose pose) {
   TypeBasedPoseLibrary library = libraries.get(pose.getPoserType());
   int index;
   if (library.getSize() > 0) {
     index = library.getSize();
     for (int i = 0; i < library.getSize(); i++) {
       Pose p = library.get(i);
       if (p.getName().compareToIgnoreCase(pose.getName()) > 0) {
         index = i;
         break;
       }
     }
   } else {
     index = 0;
   }
   library.add(index, pose);
 }
Ejemplo n.º 2
0
 public void onRemovePose(Pose pose) {
   TypeBasedPoseLibrary library = libraries.get(pose.getPoserType());
   library.removeElement(pose);
 }