Example #1
0
  public List<Skeleton> createSkeletons() {
    final List<Skeleton> result = new ArrayList<Skeleton>();

    for (PinLinksContinuousSet set : sets) {
      result.add(set.createSkeleton());
    }

    return Collections.unmodifiableList(result);
  }
Example #2
0
 private void addInternal(PinLink pinLink) {
   for (PinLinksContinuousSet set : sets) {
     if (set.doesTouch(pinLink)) {
       set.add(pinLink);
       return;
     }
   }
   final PinLinksContinuousSet newSet = new PinLinksContinuousSet();
   newSet.add(pinLink);
   sets.add(newSet);
 }