Rotates the way of mapping the texture.

@param mode The alignment of the position of the Texture.

@see casmi.image.ImageMode
500864
public void rotation(TextureRotationMode mode){
		float[][] tmp = corner.clone();
		switch (mode) {
		case HALF:
			corner[0] = tmp[2];
			corner[1] = tmp[3];
			corner[2] = tmp[0];
			corner[3] = tmp[1];
			break;
		case CLOCKWIZE:
			corner[0] = tmp[3];
			corner[1] = tmp[0];
			corner[2] = tmp[1];
			corner[3] = tmp[2];
			break;
		case COUNTERCLOCKWIZE:
			corner[0] = tmp[1];
			corner[1] = tmp[2];
			corner[2] = tmp[3];
			corner[3] = tmp[0];
			break;
		default:
			break;
		}
	}
539190
public function setMode(string $mode)
    {
        if (self::VISUAL === $mode) {
            $this->find('css', '#content-tmce')->press();
        } else {
            $this->find('css', '#content-html')->press();
        }
    }
816478
public void setTextOrientation(final TextOrientation ORIENTATION) {
        if (null == textOrientation) {
            _textOrientation = ORIENTATION;
            redraw();
        } else {
            textOrientation.set(ORIENTATION);
        }
    }
563892
public void setMode(String mode) {
                if ("soft".equalsIgnoreCase(mode)) {
                        this.mode = ResetType.SOFT;
                } else if ("mixed".equalsIgnoreCase(mode)) {
                        this.mode = ResetType.MIXED;
                } else if ("hard".equalsIgnoreCase(mode)) {
                        this.mode = ResetType.HARD;
                } else if ("merge".equalsIgnoreCase(mode)) {
                        this.mode = ResetType.MERGE;
                } else if ("keep".equalsIgnoreCase(mode)) {
                        this.mode = ResetType.KEEP;
                } else {
                        this.mode = ResetType.MIXED;
                }
        }
364288
public function setMode($mode)
    {
        if (!in_array($mode, [self::MODE_AND, self::MODE_OR])) {
            throw new InvalidArgumentException("Invalid mode $mode");
        }
        $this->mode = $mode;

        return $this;
    }
767181
public void setNightMode(boolean MODE) { 
        if (null == nightMode) {
            _nightMode = MODE;
            fireUpdateEvent(REDRAW_EVENT);
        } else {
            nightMode.set(MODE);
        }
    }
648053
public void setMode(EditorMode mode) {

        switch (mode) {
            case galleries:
                m_newGalleryMenuButton.getElement().getStyle().clearDisplay();
                m_newMenuButton.getElement().getStyle().setDisplay(Display.NONE);
                break;
            case modelpages:
            case categories:
                m_newGalleryMenuButton.getElement().getStyle().setDisplay(Display.NONE);
                m_newMenuButton.getElement().getStyle().clearDisplay();
                break;
            default:
                m_newMenuButton.getElement().getStyle().clearDisplay();
                m_newGalleryMenuButton.getElement().getStyle().setDisplay(Display.NONE);
                break;
        }
    }
1056502
public SM2 setMode(SM2Mode mode) {
		this.mode = mode;
		if (null != this.engine) {
			this.engine.setMode(mode);
		}
		return this;
	}
289209
public void setSelectMode(final SelectMode selectMode) {
		getOrCreateComponentModel().selectMode = selectMode == null ? SelectMode.NONE : selectMode;
	}
604710
public static void rotate(Image image, int degree, File outFile) throws IORuntimeException {
		write(rotate(image, degree), outFile);
	}
590869
public void setMode(int mode) {
        // check arg
        switch (mode) {
            case MODE_EXACT:
            case MODE_JCOMPOUNDMAPPER:
                break;
            default:
                throw new IllegalArgumentException("Invalid mode specified!");
        }
        this.mode = mode;

        // re-gen atom expressions
        int numAtoms = mol.getAtomCount();
        for (int atomIdx = 0; atomIdx < numAtoms; atomIdx++)
            this.aexpr[atomIdx] = encodeAtomExpr(atomIdx);
    }
317102
public T setDeployMode(String mode) {
    checkNotNull(mode, "mode");
    builder.deployMode = mode;
    return self();
  }
672382
public final void setDialogHeaderIconTintMode(@NonNull final PorterDuff.Mode mode) {
        Condition.INSTANCE.ensureNotNull(mode, "The dialog icon tint mode may not be null");
        this.dialogHeaderIconTintMode = mode;
    }
876609
public void setSelectMode(final SelectMode selectMode) {
		switch (selectMode) {
			case MULTIPLE:
				setSelectionMode(SelectionMode.MULTIPLE);
				break;
			case SINGLE:
				setSelectionMode(SelectionMode.SINGLE);
				break;
			default:
				setSelectionMode(SelectionMode.NONE);
		}
	}
882823
private function setMode(int $mode)
    {
        $this->mode = $mode;
        $this->modeStartLine = $this->line;
        $this->modeStartPosition = $this->getCurrentLinePosition();
    }
1096243
public DrawerItem setTextMode(int textMode) {
        if (textMode != SINGLE_LINE && textMode != TWO_LINE && textMode != THREE_LINE) {
            throw new IllegalArgumentException("Image mode must be either SINGLE_LINE, TWO_LINE or THREE_LINE.");
        }
        mTextMode = textMode;
        notifyDataChanged();
        return this;
    }
347460
public void setEditMode(EditMode currentMode) {
		super.setEditMode(currentMode);
		if (controller != null) {
			controller.setEditMode(currentMode);
		}
	}