|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfr.ove.openmath.jome.model.processor.ProcessorImpl
An implementation of a @see Processor.
The method doProcess does nothing. Subclasses have to,
at least, override it to provide the desired processing.
| Field Summary | |
static int |
COMPUTE
Compute the the necessaru stuff for the iconifcation of the formula. |
static int |
COMPUTE_AND_ICONIFY
Compute and iconify (recursivly) the formula according to the iconification level fixed. |
static int |
RECURSIVE_ICONIFICATION
Iconify the formula according to the iconification level fixed. |
static int |
SIMPLE_ICONIFICATION
Iconify the formula according to the iconification level fixed. |
| Constructor Summary | |
ProcessorImpl(Formula formula)
The constructor. |
|
| Method Summary | |
void |
doProcess()
Does processing. |
Formula |
getFormula()
Returns the formula to process. |
int |
getLevel()
Returns the level from which the processing starts. |
int |
getProcessingId()
Returns the current processing to execute. |
boolean |
getUpdateDisplay()
Checks if, after processing the formula, the display has to be updated. |
void |
init()
Initialisation of the processor. !! |
void |
setFormula(Formula formula)
Sets the formula to processs. |
void |
setLevel(int level)
Sets the level from which the processing starts. |
void |
setProcessingId(int processingId)
Sets the processing to execute. |
void |
setUpdateDisplay(boolean updateDisplay)
Specifies if, after processing the formula, the display has to be updated. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int COMPUTE
public static final int SIMPLE_ICONIFICATION
public static final int RECURSIVE_ICONIFICATION
public static final int COMPUTE_AND_ICONIFY
| Constructor Detail |
public ProcessorImpl(Formula formula)
formula - the formula to process.| Method Detail |
public void doProcess()
doProcess in interface Processorpublic void setFormula(Formula formula)
setFormula in interface Processorpublic Formula getFormula()
getFormula in interface Processorpublic void setUpdateDisplay(boolean updateDisplay)
setUpdateDisplay in interface ProcessorupdateDisplay - true if the display needs update.
false otherwise.public boolean getUpdateDisplay()
getUpdateDisplay in interface Processorpublic void init()
init in interface Processorpublic void setProcessingId(int processingId)
setProcessingId in interface ProcessorprocessingId - the processing Id.public int getProcessingId()
getProcessingId in interface Processorpublic void setLevel(int level)
setLevel in interface Processorlevel - the level.public int getLevel()
getLevel in interface Processor
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||