Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.modama.framework.operations
Class OpSlice  view OpSlice download OpSlice.java

java.lang.Object
  extended byorg.modama.ModelStates
      extended byorg.modama.Model
          extended byorg.modama.framework.AbstractFrameworkModel
              extended byorg.modama.framework.operations.AbstractOperation
                  extended byorg.modama.framework.operations.OpSlice
All Implemented Interfaces:
java.util.EventListener, java.beans.PropertyChangeListener

public class OpSlice
extends AbstractOperation

SLICE
makes a slice (a cut) with a given thickness at a given position through the image accepts exactly one ImageEntity as input, maybe it also should accept a list, and make produce an NumberLists as output, but at the moment multiple outputs are not allowed -> later


Nested Class Summary
 class OpSlice.Slicer
          makes a slice through an image
 
Nested classes inherited from class org.modama.framework.operations.AbstractOperation
AbstractOperation.Calculator
 
Field Summary
static int HORIZONTAL
           
protected  int pos
          position of the slice
static java.lang.String PROP_POS
           
static java.lang.String PROP_THICKNESS
           
static java.lang.String PROP_TYPE
           
protected  int thickness
          thickness of the slice (in pixel)
protected  int type
          horizontal or vertical
static int VERTICAL
           
 
Fields inherited from class org.modama.framework.operations.AbstractOperation
active, availabeCalculators, calculator, EVENT_CONNECT, EVENT_DISCONNECT, EVENT_EXECUTION_FINISHED, EVENT_EXECUTION_STARTED, input, logger, output, resultingClass
 
Fields inherited from class org.modama.framework.AbstractFrameworkModel
name, PROP_NAME
 
Fields inherited from class org.modama.Model
changeAgent, EVENT_FIRED, state
 
Fields inherited from class org.modama.ModelStates
CREATED, DELETED, MODIFIED, SAVED
 
Constructor Summary
OpSlice()
           
 
Method Summary
 boolean accept(org.modama.framework.entities.AbstractEntity entity)
          returns true if the entity will be accepted if put to the operation
 boolean canExecute()
           
protected  void fillAvailabeCalculatorsArray()
          this has to be implemented, all the available calculators have to be inserted here
 int getPos()
           
 int getThickness()
           
 int getType()
           
 void setPos(int pos)
           
 void setThickness(int thickness)
           
 void setType(int type)
           
 
Methods inherited from class org.modama.framework.operations.AbstractOperation
calculate, create, createOutputEntity, delete, execute, getInputCount, getInputs, getOutput, isActive, load, Output, propertyChange, put, remove, removeAll, removeAllInput, save, searchCalculator, setActive, setOutput, toString
 
Methods inherited from class org.modama.framework.AbstractFrameworkModel
getName, setName
 
Methods inherited from class org.modama.Model
addPropertyChangeListener, addPropertyChangeListener, fire, fire, fire, getState, removePropertyChangeListener, removePropertyChangeListener, setState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROP_POS

public static final java.lang.String PROP_POS
See Also:
Constant Field Values

PROP_THICKNESS

public static final java.lang.String PROP_THICKNESS
See Also:
Constant Field Values

PROP_TYPE

public static final java.lang.String PROP_TYPE
See Also:
Constant Field Values

HORIZONTAL

public static final int HORIZONTAL
See Also:
Constant Field Values

VERTICAL

public static final int VERTICAL
See Also:
Constant Field Values

pos

protected int pos
position of the slice


thickness

protected int thickness
thickness of the slice (in pixel)


type

protected int type
horizontal or vertical

Constructor Detail

OpSlice

public OpSlice()
Method Detail

fillAvailabeCalculatorsArray

protected void fillAvailabeCalculatorsArray()
Description copied from class: AbstractOperation
this has to be implemented, all the available calculators have to be inserted here

Specified by:
fillAvailabeCalculatorsArray in class AbstractOperation

getPos

public int getPos()

setPos

public void setPos(int pos)

getThickness

public int getThickness()

setThickness

public void setThickness(int thickness)

getType

public int getType()

setType

public void setType(int type)

accept

public boolean accept(org.modama.framework.entities.AbstractEntity entity)
Description copied from class: AbstractOperation
returns true if the entity will be accepted if put to the operation

Specified by:
accept in class AbstractOperation

canExecute

public boolean canExecute()
Specified by:
canExecute in class AbstractOperation