Interface COM.tolstoy.imagemeister.PluginI
All Packages Class Hierarchy This Package Previous Next Index
Interface COM.tolstoy.imagemeister.PluginI
- public interface PluginI
- extends Object
This interface is used to represent plugins. Objects which implement this interface are used
to create instances of image and info viewers, indicate which file types this plugin supports,
and return other information on the plugin.
-
copyright
-
-
kDisplayName
- See the getName() method.
-
kMacStyleName
- See the getName() method.
-
kWinStyleName
- See the getName() method.
-
canCreateImageViewer(FileSpecifier)
- Given a FileSpecifier representing a file, return a boolean value indicating whether this plugin
can create an image viewer for that file.
-
canCreateInfoViewer(FileSpecifier)
- Given a FileSpecifier representing a file, return a boolean value indicating whether this plugin
can create an info viewer for that file.
-
createImageViewer(OwnedFrame, ImageViewerOwner, FileSpecifier, Rectangle)
- Given a FileSpecifier representing a file, create an image viewer for that file.
-
createInfoViewer(OwnedFrame, InfoViewerOwner, FileSpecifier, Rectangle)
- Given a FileSpecifier representing a file, create an info viewer for that file.
-
getChildren()
- For a hierarchy of plugins, return an array of this plugin's child plugins.
-
getFileExtension()
- Return an array of FileExtension objects, representing the non-Mac file types this plugin
supports.
-
getFinderInfo()
- Return an array of FinderInfo objects, representing the Mac file types this plugin supports.
-
getIconPanel()
- Return an IconPanel which shows the icon representing this plugin.
-
getMIMEType()
- Return an array of MIMEType objects, representing the MIME types this plugin
supports.
-
getName(int)
- Return the name of this plugin.
-
getParent()
- For a hierarchy of plugins, return the parent of this plugin.
-
getVersionInfo()
- Return version information about this plugin.
copyright
public final static String copyright
kDisplayName
public final static int kDisplayName
- See the getName() method.
kMacStyleName
public final static int kMacStyleName
- See the getName() method.
kWinStyleName
public final static int kWinStyleName
- See the getName() method.
getFinderInfo
public abstract FinderInfo[] getFinderInfo()
- Return an array of FinderInfo objects, representing the Mac file types this plugin supports. May
return null.
getFileExtension
public abstract FileExtension[] getFileExtension()
- Return an array of FileExtension objects, representing the non-Mac file types this plugin
supports. May return null.
getMIMEType
public abstract MIMEType[] getMIMEType()
- Return an array of MIMEType objects, representing the MIME types this plugin
supports. May return null.
canCreateImageViewer
public abstract boolean canCreateImageViewer(FileSpecifier spec)
- Given a FileSpecifier representing a file, return a boolean value indicating whether this plugin
can create an image viewer for that file. Note that any object contained by the FileSpecifier
may be null, with the exception that not both the DiskObject and the File contained by the
FileSpecifier will be null.
canCreateInfoViewer
public abstract boolean canCreateInfoViewer(FileSpecifier spec)
- Given a FileSpecifier representing a file, return a boolean value indicating whether this plugin
can create an info viewer for that file. Note that any object contained by the FileSpecifier
may be null, with the exception that not both the DiskObject and the File contained by the
FileSpecifier will be null.
createImageViewer
public abstract ImageViewerI createImageViewer(OwnedFrame frame,
ImageViewerOwner onr,
FileSpecifier spec,
Rectangle rect)
- Given a FileSpecifier representing a file, create an image viewer for that file. This method may
return null if the image viewer could not be created.
Note that any object contained by the FileSpecifier may be null, with the exception that
not both the DiskObject and the File contained by the FileSpecifier will be null.
- Parameters:
- frame - if this is not null, show the file in this frame. Otherwise, create a new OwnedFrame,
and show the file in the new frame.
- onr - the object which owns this viewer
- spec - specifies the file to be shown
- rect - the suggested location and dimensions of the viewer. If the frame argument is null,
the WindowManager should be used to correctly place the new frame. Otherwise, the current
location and dimensions of the supplied frame should be used.
createInfoViewer
public abstract InfoViewerI createInfoViewer(OwnedFrame frame,
InfoViewerOwner onr,
FileSpecifier spec,
Rectangle rect)
- Given a FileSpecifier representing a file, create an info viewer for that file. This method may
return null if the info viewer could not be created.
Note that any object contained by the FileSpecifier may be null, with the exception that
not both the DiskObject and the File contained by the FileSpecifier will be null.
- Parameters:
- frame - if this is not null, show the file in this frame. Otherwise, create a new OwnedFrame,
and show the file in the new frame.
- onr - the object which owns this viewer
- spec - specifies the file to be shown
- rect - the suggested location and dimensions of the viewer. If the frame argument is null,
the WindowManager should be used to correctly place the new frame. Otherwise, the current
location and dimensions of the supplied frame should be used.
getVersionInfo
public abstract VersionInfo getVersionInfo()
- Return version information about this plugin. May return null.
getName
public abstract String getName(int which)
- Return the name of this plugin.
- Parameters:
- which - if this is 'kDisplayName', return the generic name of this plugin. If this is
'kMacStyleName', return the Mac-style name, and if this is 'kWinStyleName', return the
Windows-style name. If 'which' is not one of these values, return null.
getParent
public abstract PluginI getParent()
- For a hierarchy of plugins, return the parent of this plugin. May return null.
getChildren
public abstract PluginI[] getChildren()
- For a hierarchy of plugins, return an array of this plugin's child plugins. May return null.
getIconPanel
public abstract IconPanel getIconPanel()
- Return an IconPanel which shows the icon representing this plugin. May return null.
All Packages Class Hierarchy This Package Previous Next Index