Пример #1
0
 /** @see Figure#primTranslate(int, int) */
 @Override
 public void primTranslate(int dx, int dy) {
   super.primTranslate(dx, dy);
   triangle.translate(dx, dy);
 }
 private PointList getTranslated(PointList source, Point offset) {
   PointList target = new PointList(source.size());
   target.addAll(source);
   target.translate(offset);
   return target;
 }