picture.filetype
Class PictureTypeFactory
java.lang.Object
|
+--picture.filetype.PictureTypeFactory
- public class PictureTypeFactory
- extends java.lang.Object
PictureType-Fabrik.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PictureTypeFactory
public PictureTypeFactory()
registerPictureType
public static void registerPictureType(PictureType pt)
- Registriert einen neuen PictureType.
- Parameters:
pt
- neuer PictureType
getDefaultPictureType
public static PictureType getDefaultPictureType()
- Liefert den Standard-PictureType zurück.
- Returns:
- Standard-PictureType, z.B. zum Abspeichern.
getAllPictureTypes
public static java.util.ListIterator getAllPictureTypes()
- Liefert alle registrierten PictureTypes
- Returns:
- alle registrierten PictureTypes
getPictureTypeByExtension
public static PictureType getPictureTypeByExtension(java.lang.String ext)
throws PictureException
- Liefert eine PictureType-Instanz zur übergebenen Dateiendung.
- Parameters:
ext
- Dateiendung- Returns:
- PictureType-Instanz, die entsprechenden Dateityp verarbeiten kann
- Throws:
PictureException
-
loadPicture
public static Picture loadPicture(java.lang.String fn)
throws java.io.IOException,
PictureException
- Lädt ein Bild aus Datei.
- Parameters:
fn
- Dateiname- Returns:
- Neues Bild
- Throws:
java.io.IOException
- PictureException
-
loadPicture
public static Picture loadPicture(java.io.File f)
throws PictureException,
java.io.IOException
- Lädt ein Bild aus Datei.
- Parameters:
f
- File-Objekt- Returns:
- Neues Bild
- Throws:
java.io.IOException
- PictureException
-