picture.filter
Class Rotation

java.lang.Object
  |
  +--picture.DefaultTransformation
        |
        +--picture.filter.Rotation
All Implemented Interfaces:
ProgressViewableTransformation, java.io.Serializable, Transformation

public class Rotation
extends DefaultTransformation

Diese Klasse repraesentiert eine Rotation des Bildes um ein ganzahliges Vielfaches von neunzig Grad.

See Also:
Serialized Form

Constructor Summary
Rotation()
          Liefert eine Drehung um 0 * 90 Grad, also die Identitaet.
Rotation(int n)
          Erzeugt eine Drehung um n * 90 Grad entgegen dem Uhrzeigersinn.
 
Method Summary
 int getNumberOfProgressSteps(Picture p)
          Bestimmt die Anzahl der Schritte, die bei den aktuellen Einstellungen auf den ProgressHandler von p ausgeführt werden, wenn diese Transformation auf p ausgeführt wird.
 Layer of(ProgressHandler ph, Layer p)
          Fuehrt die Transformation auf einer Bildebene aus.
 
Methods inherited from class picture.DefaultTransformation
createNewInstance, filterOptionPane, getDistance, getPreferredFileName, isPowerOfTwo, loadFrom, of, saveTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Rotation

public Rotation()
Liefert eine Drehung um 0 * 90 Grad, also die Identitaet.

Rotation

public Rotation(int n)
Erzeugt eine Drehung um n * 90 Grad entgegen dem Uhrzeigersinn.
Method Detail

getNumberOfProgressSteps

public int getNumberOfProgressSteps(Picture p)
Description copied from interface: ProgressViewableTransformation
Bestimmt die Anzahl der Schritte, die bei den aktuellen Einstellungen auf den ProgressHandler von p ausgeführt werden, wenn diese Transformation auf p ausgeführt wird.
Following copied from interface: picture.ProgressViewableTransformation
Returns:
Anzahl der Schritte

of

public Layer of(ProgressHandler ph,
                Layer p)
Description copied from class: DefaultTransformation
Fuehrt die Transformation auf einer Bildebene aus.
Overrides:
of in class DefaultTransformation