~ubuntu-branches/ubuntu/utopic/sweethome3d/utopic

« back to all changes in this revision

Viewing changes to src/com/eteks/sweethome3d/model/HomeFurnitureGroup.java

  • Committer: Package Import Robot
  • Author(s): Gabriele Giacone
  • Date: 2013-11-05 13:02:16 UTC
  • mfrom: (1.1.14)
  • Revision ID: package-import@ubuntu.com-20131105130216-0e7dgqqvdq4pwm96
Tags: 4.2+dfsg-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
204
204
  }
205
205
 
206
206
  /**
 
207
   * Returns <code>null</code>.
 
208
   * @since 4.2
 
209
   */
 
210
  @Override
 
211
  public String getInformation() {
 
212
    return null;
 
213
  }
 
214
  
 
215
  /**
207
216
   * Returns <code>true</code> if all furniture of this group are movable.
208
217
   */
209
218
  @Override
321
330
  public float [][] getModelRotation() {
322
331
    return IDENTITY;
323
332
  }
324
 
  
 
333
 
325
334
  /**
326
335
   * Returns <code>null</code>.
327
336
   * @since 3.5
332
341
  }
333
342
  
334
343
  /**
 
344
   * Returns <code>null</code>.
 
345
   * @since 4.2
 
346
   */
 
347
  @Override
 
348
  public String getCreator() {
 
349
    return null;
 
350
  }
 
351
  
 
352
  /**
335
353
   * Returns the price of the furniture of this group with a price.
336
354
   */
337
355
  @Override
733
751
    // Deep clone furniture managed by this group
734
752
    clone.furniture = new ArrayList<HomePieceOfFurniture>(this.furniture.size());
735
753
    for (HomePieceOfFurniture piece : this.furniture) {
736
 
      clone.furniture.add(piece.clone());
 
754
      HomePieceOfFurniture pieceClone = piece.clone();
 
755
      clone.furniture.add(pieceClone);
 
756
      if (piece instanceof HomeDoorOrWindow
 
757
          && ((HomeDoorOrWindow)piece).isBoundToWall()) {
 
758
        ((HomeDoorOrWindow)pieceClone).setBoundToWall(true);
 
759
      }
737
760
    }
738
761
    clone.furniture = Collections.unmodifiableList(clone.furniture);
739
762
    if (this.furnitureDefaultColors != null)  {