예제 #1
0
  /**
   * Rotate the primitive. For a macro, it is different than for the other primitive, since we need
   * to rotate its coordinate system.
   *
   * @param bCounterClockWise specify if the rotation should be done counterclockwise.
   * @param ix the x coordinate of the center of rotation
   * @param iy the y coordinate of the center of rotation
   */
  public void rotatePrimitive(boolean bCounterClockWise, int ix, int iy) {
    super.rotatePrimitive(bCounterClockWise, ix, iy);

    if (bCounterClockWise) o = (o + 3) % 4;
    else o = ++o % 4;

    changed = true;
  }