picture
Class SelectPresentation
java.lang.Object
|
+--picture.SelectPresentation
- All Implemented Interfaces:
- PresentationType
- public class SelectPresentation
- extends java.lang.Object
- implements PresentationType
Method Summary |
Presentation |
createPresentation(Picture p)
Erzeugt eine Presentation dieses Types auf dem Bild p. |
Presentation |
createPresentation(Picture p,
java.lang.String s)
Erzeugt eine Presentation dieses Types auf dem Bild p |
java.lang.String |
getName()
Gibt den Namen des PresentationTypes zurück |
boolean |
isCompatible(Picture mlp)
Prüft, ob es möglich ist, eine Presentation dieses Typs auf p
zu erzeugen, ohne daß ein Fehler auftritt und liefert in diesem Fall true.
false wird z.B. zurückgegeben, wenn versucht wird, eine ColorPresentation
auf einem Bild mit nur zwei Layern zu erzeugen. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SelectPresentation
public SelectPresentation()
isCompatible
public boolean isCompatible(Picture mlp)
- Description copied from interface:
PresentationType
- Prüft, ob es möglich ist, eine Presentation dieses Typs auf p
zu erzeugen, ohne daß ein Fehler auftritt und liefert in diesem Fall true.
false wird z.B. zurückgegeben, wenn versucht wird, eine ColorPresentation
auf einem Bild mit nur zwei Layern zu erzeugen.
- Specified by:
isCompatible
in interface PresentationType
- Following copied from interface:
picture.PresentationType
- Parameters:
p:
- Prüfbild
getName
public java.lang.String getName()
- Description copied from interface:
PresentationType
- Gibt den Namen des PresentationTypes zurück
- Specified by:
getName
in interface PresentationType
- Following copied from interface:
picture.PresentationType
- Returns:
- Name des PresentationTypes
createPresentation
public Presentation createPresentation(Picture p)
- Description copied from interface:
PresentationType
- Erzeugt eine Presentation dieses Types auf dem Bild p.
- Specified by:
createPresentation
in interface PresentationType
- Following copied from interface:
picture.PresentationType
- Throws:
PictureException,
- falls !this.isCompatible(p)
createPresentation
public Presentation createPresentation(Picture p,
java.lang.String s)
throws java.lang.IllegalArgumentException,
PictureException
- Description copied from interface:
PresentationType
- Erzeugt eine Presentation dieses Types auf dem Bild p
- Specified by:
createPresentation
in interface PresentationType
- Following copied from interface:
picture.PresentationType
- Throws:
PictureException,
- falls das Bild inkompatibel zu diesem Presentationtype ist.IllegalArgumentException,
- falls der Parameterstring ungueltig ist