|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.shapelogic.imageutil.BaseImageOperation
public abstract class BaseImageOperation
Class to subclass when writing filters.
Field Summary | |
---|---|
protected java.lang.String |
_arg
This is an argument with information about what should be run. |
protected GuiWrapper |
_guiWrapper
|
protected SLImage |
_image
|
protected int |
_setupReturnValue
|
Constructor Summary | |
---|---|
BaseImageOperation()
|
|
BaseImageOperation(int setupReturnValue)
|
|
BaseImageOperation(int setupReturnValue,
SLImage imp)
|
|
BaseImageOperation(int setupReturnValue,
java.lang.String arg,
SLImage imp)
|
|
BaseImageOperation(SLImage imp)
|
Method Summary | |
---|---|
GuiWrapper |
getGuiWrapper()
|
SLImage |
getImage()
How to get the SLImage in run(). |
int |
getSetupReturnValue()
|
boolean |
isImageValid()
Filter capability is encoded in _setupReturnValue compare it to the type input image. XXX This is not fully implemented yet. |
void |
setGuiWrapper(GuiWrapper guiWrapper)
If you want the object to write to a GUI, set a GUIWrapper. |
void |
setSetupReturnValue(int setupReturnValue)
|
int |
setup(java.lang.String arg,
SLImage image)
If you are using the ImageOperation to fit into a ImageJ PlugInFilter use this to instantiate arg and image. |
java.lang.String |
showAbout()
|
void |
showMessage(java.lang.String title,
java.lang.String text)
This wrapper only implement displaying a simple text string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.lang.Runnable |
---|
run |
Field Detail |
---|
protected SLImage _image
protected GuiWrapper _guiWrapper
protected java.lang.String _arg
protected int _setupReturnValue
Constructor Detail |
---|
public BaseImageOperation(int setupReturnValue, java.lang.String arg, SLImage imp)
public BaseImageOperation(int setupReturnValue, SLImage imp)
public BaseImageOperation(SLImage imp)
public BaseImageOperation(int setupReturnValue)
public BaseImageOperation()
Method Detail |
---|
public SLImage getImage()
ImageOperation
getImage
in interface ImageOperation
public int setup(java.lang.String arg, SLImage image)
setup
in interface ImageOperation
public void showMessage(java.lang.String title, java.lang.String text)
ImageOperation
showMessage
in interface ImageOperation
public void setGuiWrapper(GuiWrapper guiWrapper)
ImageOperation
setGuiWrapper
in interface ImageOperation
public GuiWrapper getGuiWrapper()
getGuiWrapper
in interface ImageOperation
public boolean isImageValid()
isImageValid
in interface ImageOperation
public int getSetupReturnValue()
getSetupReturnValue
in interface ImageOperation
public void setSetupReturnValue(int setupReturnValue)
setSetupReturnValue
in interface ImageOperation
public java.lang.String showAbout()
showAbout
in interface ImageOperation
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |