picture.filetype
Class JPFPictureType
java.lang.Object
|
+--picture.filetype.PictureType
|
+--picture.filetype.JPFPictureType
- public class JPFPictureType
- extends PictureType
PictureType-Unterklasse für JPF (Jipp Picture Format) - Dateien.
Method Summary |
java.lang.String |
getDescription()
Beschreibung des Bildtyps. |
java.lang.String |
getExtension()
Liefert die Dateiendung zurück. |
DialogPane |
getSaveOptionsPane(javax.swing.JFrame f,
Picture p)
Liefert einen Speichern-Optionendialog zurück (null,
falls es keinen gibt). |
static void |
init()
Dummy zum Aufrufen des Static-Initializers ... |
Picture |
load(java.io.InputStream origin)
Lädt ein Bild im entsprechenden Format. |
void |
save(Picture p,
PictureProperty pp,
java.io.OutputStream origout)
Speichert das übergebene Bild im entsprechenden Format mit Optionen ab. |
protected static java.lang.String[] |
vectorToStringArray(java.util.Vector v)
Converts a vector of strings to String[]. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JPFPictureType
public JPFPictureType()
init
public static final void init()
- Dummy zum Aufrufen des Static-Initializers ...
getExtension
public java.lang.String getExtension()
- Description copied from class:
PictureType
- Liefert die Dateiendung zurück.
- Overrides:
getExtension
in class PictureType
- Following copied from class:
picture.filetype.PictureType
- Returns:
- Dateiendung.
getDescription
public java.lang.String getDescription()
- Description copied from class:
PictureType
- Beschreibung des Bildtyps.
- Overrides:
getDescription
in class PictureType
- Following copied from class:
picture.filetype.PictureType
- Returns:
- Kurzbeschreibung.
getSaveOptionsPane
public DialogPane getSaveOptionsPane(javax.swing.JFrame f,
Picture p)
throws PictureException
- Description copied from class:
PictureType
- Liefert einen Speichern-Optionendialog zurück (null,
falls es keinen gibt).
- Overrides:
getSaveOptionsPane
in class PictureType
- Following copied from class:
picture.filetype.PictureType
- Parameters:
owner
- Parentframepic
- zu berbeitendes Bild- Returns:
- Speichern-Optionendialog
load
public Picture load(java.io.InputStream origin)
throws PictureException,
java.io.IOException
- Description copied from class:
PictureType
- Lädt ein Bild im entsprechenden Format.
- Overrides:
load
in class PictureType
- Following copied from class:
picture.filetype.PictureType
- Parameters:
in
- Eingabestream- Returns:
- gelesenes Bild
save
public void save(Picture p,
PictureProperty pp,
java.io.OutputStream origout)
throws PictureException,
java.io.IOException
- Description copied from class:
PictureType
- Speichert das übergebene Bild im entsprechenden Format mit Optionen ab.
- Overrides:
save
in class PictureType
- Following copied from class:
picture.filetype.PictureType
- Parameters:
p
- Zu speicherndes Bildp
- Optionenout
- Ausgabestream
vectorToStringArray
protected static java.lang.String[] vectorToStringArray(java.util.Vector v)
- Converts a vector of strings to String[].
- Parameters:
v
- Vector to convert.- Returns:
- generated String array.