Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

1234567891011121314151617181920212223242526272829
  1. /* *******************************************************************
  2. * Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC).
  3. * All rights reserved.
  4. * This program and the accompanying materials are made available
  5. * under the terms of the Common Public License v1.0
  6. * which accompanies this distribution and is available at
  7. * http://www.eclipse.org/legal/cpl-v10.html
  8. *
  9. * Contributors:
  10. * PARC initial implementation
  11. * ******************************************************************/
  12. package answers;
  13. import figures.FigureElement;
  14. import figures.Group;
  15. import java.awt.Rectangle;
  16. aspect Answer4b {
  17. private Rectangle Group.cache = null;
  18. Rectangle around(Group g):
  19. execution(Rectangle Group.getBounds()) && this(g) {
  20. if (g.cache == null) {
  21. g.cache = proceed(g);
  22. }
  23. return g.cache;
  24. }
  25. }