java.lang.Object
de.grogra.video.model.ImageSequenceViewer
- All Implemented Interfaces:
ImageSequenceView
Implements an
ImageSequenceView
which grants read only access to the
sequence given by objects creation by simply passing all method calls to the
sequence.- Author:
- Dominick Leppich
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Check, if a givenObject
is inside this sequence.get
(int arg0) Get theVideoImage
at a given position.Return theDimension
of the images in this sequence.getList()
Get the whole sequence ofVideoImage
s as aList
.getRegex()
Get the regular expression describing all image files.boolean
isEmpty()
Check, if the sequence is empty.void
reorder()
Renames all files and create a regular expression for all files.int
size()
Return the size of the sequence (the number ofVideoImage
s saved in the sequence).
-
Method Details
-
contains
Description copied from interface:ImageSequenceView
Check, if a givenObject
is inside this sequence.- Specified by:
contains
in interfaceImageSequenceView
- Returns:
- True, if this sequence contains the specified
Object
-
get
Description copied from interface:ImageSequenceView
Get theVideoImage
at a given position.- Specified by:
get
in interfaceImageSequenceView
- Returns:
- The
VideoImage
at the given position
-
getList
Description copied from interface:ImageSequenceView
Get the whole sequence ofVideoImage
s as aList
.- Specified by:
getList
in interfaceImageSequenceView
- Returns:
- All
VideoImage
s in aList
-
isEmpty
public boolean isEmpty()Description copied from interface:ImageSequenceView
Check, if the sequence is empty.- Specified by:
isEmpty
in interfaceImageSequenceView
- Returns:
- True, if the sequence is empty
-
size
public int size()Description copied from interface:ImageSequenceView
Return the size of the sequence (the number ofVideoImage
s saved in the sequence).- Specified by:
size
in interfaceImageSequenceView
- Returns:
- The size of the sequence
-
getDimension
Description copied from interface:ImageSequenceView
Return theDimension
of the images in this sequence. This dimension is unique, because the sequence doesn't allow to add images with mismatching dimensions.- Specified by:
getDimension
in interfaceImageSequenceView
- Returns:
VideoImage
dimension of this sequence
-
reorder
public void reorder()Description copied from interface:ImageSequenceView
Renames all files and create a regular expression for all files.- Specified by:
reorder
in interfaceImageSequenceView
-
getRegex
Description copied from interface:ImageSequenceView
Get the regular expression describing all image files.- Specified by:
getRegex
in interfaceImageSequenceView
- Returns:
- Regular expression
-