Use case: Add single image file to library
Priority high
Participating Actors:
User
Library
Import
Filehandler
Normal flow of events:
User performs a command to open a image file.
The import subsystem tells the Filehandler that an image is to be
imported and the filehandler presents a filechooser.
The user locates the file to be opened and performs action to confirm it.
The import subsystem creates an image of the file aquired by the
filehandler and adds it to the library and sets the added image as
selected.
Exceptional flow:
Selects file with unknown file format. (Not an image file or an
unsupported image file).
N.A. User wont be able to choose unknown fileformats.
File already in library.
Selects the image in the library.
No file choosen.
N.A. Open button disabled.
Use case: Add multiple image files to library
Priority mid
Participating Actors:
User
Library
Filehandler
Normal flow of events:
Performs a command to open image files.
The import subsystem tells the Filehandler that an image is to be
imported and the filehandler presents a filechooser.
The user locates the files to be opened and performs action to confirm it.
The import subsystem creates images from the files aquired by
the filehandler and adds them to the library and sets the last
selected image as selected.
Exceptional flow:
Selects one or more files with unknown file format. (Not an image file or
an unsupported image file).
Ignore the file(s) with unknown or unsupported file format. Adds
the other to the library.
File already in library.
Selects the image in the library.
No file choosen.
N.A. Open button disabled.
Use case: View image
Priority High
Actor:
GUI
Core
Library
Normal flow of events:
GUI presents the picture currently set as selected.
Exceptions:
Multiple images selected
Latest selected image will be displayed on center stage.
Use case: Select image(s)
Prority high – multiple image actions as mid priority
Actor:
User
Core
Normal flow of events:
User selects image(s).
Core sets the selected image as selected.
Use case: Delete image(s) in library
Priority high - multiple image actions as mid priority
Actor:
User
Core
Library
GUI
Normal flow of events
Performs action to remove selected image(s) from library.
Removes from library. GUI removes image from view.
Exceptions
No image(s)/folder(s) selected.
Remove command disabled.
Use case: Export selected image(s)
Priority high – multiple image actions as mid priority
Actor
User
Core
Exporter
Library
Image processor
Normal flow of events
User performs action to export image(s).
Core sends the image from the library to our exporter subsystem
via image processor. The exporter subsystems presents a
filechooser.
User selects where to put the image.
Exporter puts it their.
Exceptions
Files already excists.
Shows a dialogbox asking permisson to overwrite files, select a
new location. save in a diffrent name or cancel export.
Use case: Show next/previous image in library
(extends View-image and Select Image)
Priority mid
Actor:
User
Core
Normal flow of events
User perfoms action to view next or previous image.
Core sets the appropriate image as selected.
Exception
No next or previous image.
Show first/last image.
Use case: View next or previous image within
selected images
Priority low
Actor
User
Normal flow of events
Performs action to view next or previous image.
Shows next/previous image within selection.
Exception
No next or previous image.
Show first/last image.
Use case: Apply effect to selected image(s)
Priority high - multiple image actions as mid priority
Actor
User
Effecthandler
Imageprocessor
GUI
Core
Normal flow of events
User performs action to apply filter to selected image(s)
Core tells the effecthandler to add the effect to the image.
The imageprocessor applies the effect(using effecthandler) and
Sends the processed image back to GUI via Core.
Exception
No image selected.
Disabled filter/alterations buttons.
Use case: Undo effects extends Apply effect
Priority mid
Actor
User
Core
Normal flow of events
User performs undo action . The implentation for this function can
be varied. The undo/redo function can be based on the list that is bound
to an image. Or the undo/redo function can be more advanced using a
subsystem for just undo/redo.
The core ”updates” the image by doing apply effect to selected image.
Use case: Redo effect
Priority mid
Actor:
User
Normal flow of events
User perform action to redo something that’s been undone.
Re-applies the effect that was privously removed. Changes the step
from redo point to effect.
Exception:
No exceptions.
Use case: Remove effect from image extends apply
affect to image
Priority high
Actor
User
Core
Normal flow of events
Performs action to remove filter. (removes the effect in the list bound to image).
Core ”Updates” image by use case ”Apply filter”.
Removes filter if filter is applied to the image.