Class PluginMgr

java.lang.Object
  extended by PluginMgr
Direct Known Subclasses:
Plugin1, Plugin2, Plugin3

public class PluginMgr
extends java.lang.Object

PluginMgr base class is used for managing user Plugin{n}'s for Flicker.

This work was produced by Peter Lemkin of the National Cancer Institute, an agency of the United States Government. As a work of the United States Government there is no associated copyright. It is offered as open source software under the Mozilla Public License (version 1.1) subject to the limitations noted in the accompanying LEGAL file. This notice must be included with the code. The Flicker Mozilla and Legal files are available on http://open2dprot.sourceforge.net/Flicker

Version:
$Date$ $Revision$
Author:
P. Lemkin (LECB/NCI), G. Thornwall (SAIC), Frederick, MD
See Also:
Flicker Home

Field Summary
static Plugin1 ef1
           
static Plugin2 ef2
           
static Plugin3 ef3
           
static java.lang.String[] efInfo
          opt.
static boolean[] efIsActive
          if external function is used
static java.lang.String[] efMnuName
          which external functions appears in menu
static java.lang.String[] efName
          name of external function command
static int[] efNbr
          external function number 1 to n
static int extFctNbr
          function number
(package private) static Flicker flk
          global instance
 java.lang.String info
          optional help message for function
static boolean isActive
          set if this instance is active
(package private) static int MAX_EXTERN_FCTS
          max # of external functions alloc'ed
 java.lang.String mnuName
          what appears in menu
 java.lang.String name
          name of command
static int nExtFcts
          # of external functions
static int nPluginsFound
          # of active plugins found
 
Constructor Summary
PluginMgr()
          PluginMgr() - constructor
PluginMgr(Flicker flkS)
          PluginMgr() - constructor called from main to initialize things
 
Method Summary
static boolean fctCalc(Flicker flk, int efNbr, ImageData iData, int[] oPix)
          fctCalc() - called to perform the image function
private static void pushEFentry(java.lang.String name, java.lang.String mnuName, java.lang.String info, boolean isActive, int extFctNbr)
          pushEFentry() - push extern fuctnion ef into list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

flk

static Flicker flk
global instance


MAX_EXTERN_FCTS

static final int MAX_EXTERN_FCTS
max # of external functions alloc'ed

See Also:
Constant Field Values

efName

public static java.lang.String[] efName
name of external function command


efInfo

public static java.lang.String[] efInfo
opt. info on external functions


efMnuName

public static java.lang.String[] efMnuName
which external functions appears in menu


efIsActive

public static boolean[] efIsActive
if external function is used


efNbr

public static int[] efNbr
external function number 1 to n


nExtFcts

public static int nExtFcts
# of external functions


nPluginsFound

public static int nPluginsFound
# of active plugins found


ef1

public static Plugin1 ef1

ef2

public static Plugin2 ef2

ef3

public static Plugin3 ef3

name

public java.lang.String name
name of command


mnuName

public java.lang.String mnuName
what appears in menu


info

public java.lang.String info
optional help message for function


isActive

public static boolean isActive
set if this instance is active


extFctNbr

public static int extFctNbr
function number

Constructor Detail

PluginMgr

public PluginMgr()
PluginMgr() - constructor


PluginMgr

public PluginMgr(Flicker flkS)
PluginMgr() - constructor called from main to initialize things

Method Detail

pushEFentry

private static void pushEFentry(java.lang.String name,
                                java.lang.String mnuName,
                                java.lang.String info,
                                boolean isActive,
                                int extFctNbr)
pushEFentry() - push extern fuctnion ef into list.

Parameters:
name - of the function to push
mnuName - is the menu name
info - associated with the function
isActive - when start up
extFctNbr - is the external function number

fctCalc

public static boolean fctCalc(Flicker flk,
                              int efNbr,
                              ImageData iData,
                              int[] oPix)
fctCalc() - called to perform the image function

Parameters:
flk - is instance of flicker
efNbr - is the external function number
iData - image data to process
oPix - is output pixel array to put results
Returns:
false if failed.