java.lang.Object
de.grogra.video.VideoPlugin
The
VideoPlugin
class connects the video export plugin with the rest
of the GroIMP software.
It provides easy access to default implementations of
VideoPluginConnector
and VideoExporter
objects.
Additionally the static method getInterpolationStrategies()
can be
used to get a list of available InterpolationStrategy
s.
The method to create the export panel, throw the callback in the GroIMP
registry, is located in this class as well.
Last but not least there are methods for central error handling.- Author:
- Dominick Leppich
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VideoPluginConnector
createDefaultConnector
(Workbench workbench) Returns an instance of the defaultVideoPluginConnector
implementationstatic VideoExporter
Returns the defaultVideoExporter
implementationstatic Panel
createVideoPanel
(Context ctx, Map params) Create a new video export panel.static List<InterpolationStrategy>
Get a list of all availableInterpolationStrategy
objects.static void
handleError
(Component caller, Throwable e) static void
Handles aThrowable
object (an error).static void
showWarning
(String message) Show a warning message to the user, using theJOptionPane
class.
-
Constructor Details
-
VideoPlugin
public VideoPlugin()
-
-
Method Details
-
createDefaultConnector
Returns an instance of the defaultVideoPluginConnector
implementation- Parameters:
workbench
- - Workbench- Returns:
- A
VideoPluginConnector
instance
-
createDefaultExporter
Returns the defaultVideoExporter
implementation- Returns:
VideoExporter
-
getInterpolationStrategies
Get a list of all availableInterpolationStrategy
objects. So far there is only one strategy, theAlphaFadingStrategy
implemented.- Returns:
- A list of all
InterpolationStrategy
objects
-
createVideoPanel
Create a new video export panel. This is the entry point of the plugin panel. -
handleError
Handles aThrowable
object (an error). The methodhandleError(Component, Throwable)
is used for the concrete handling.- Parameters:
e
- -Throwable
-
handleError
Handles aThrowable
object (an error) with a givenComponent
(the caller). The error is printed to the error stream and shown in an error dialog using theJOptionPane
class. -
showWarning
Show a warning message to the user, using theJOptionPane
class.- Parameters:
message
- - The message
-