|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfr.ove.openmath.jome.model.Node
fr.ove.openmath.jome.model.FormulaTreeStructure
| Constructor Summary | |
FormulaTreeStructure()
|
|
| Method Summary | |
void |
addModelListener(ModelListener modelListener)
Registers another listener to be informed of changes of the FTS. |
void |
consumeControlEvent(ControlEvent controlEvent)
Consumes (i.e. treats) the event received. |
abstract java.lang.String |
createLinear(java.lang.String linear)
The Creation of the corresponding linear expression of the formula. |
abstract java.lang.String |
evaluate()
Evaluates the instance. |
FormulaTreeStructure |
findLocation(FormulaTreeStructure current)
Returns the node (operator), which is the position in the formula tree, where the instance have to be inserted. |
void |
fireModelEvent(ModelEvent modelEvent)
Fires a ModelEvent event to registered listeners. |
boolean |
getAreOperandsMovable()
|
int |
getAsOperandPriority()
Returns the priority of the instance viewed as an operand. |
int |
getAsOperatorPriority()
Returns the priority of the instance viewed as an operator. |
boolean |
getCrossRef()
|
java.lang.String |
getIconName()
Returns the name of the icon associated to the instance. |
java.util.Vector |
getListeners()
Returns all the registered listener of the instance. |
java.lang.String |
getResourceIdentifier()
Returns the resource identifier of the instance. |
java.lang.String |
getValue()
Returns the value. |
FormulaTreeStructure |
goTo(int priority)
Returns the father of the node which, from the current instance, have the specified priority. |
void |
iconify()
Iconifies the instance. |
abstract FormulaTreeStructure |
insert(FormulaTreeStructure current)
Inserts the instance in the formula tree, from the current insertion position. |
boolean |
isEqual(Comparable toCompare)
Tests if the instance is equal to the specified one. |
boolean |
isGreater(Comparable toCompare)
Tests if the instance is greater than the specified one. |
boolean |
isGreaterOrEqual(Comparable toCompare)
Tests if the instance is greater or equal than the specified one. |
boolean |
isIcon()
|
boolean |
isIconifiable()
Returns true if the instance is iconifiable.
|
boolean |
isLesser(Comparable toCompare)
Tests if the instance is lesser than the specified one. |
boolean |
isLesserOrEqual(Comparable toCompare)
Tests if the instance is lesser or equal than the specified one. |
abstract boolean |
isOperator()
To check is the instance is an operator. |
boolean |
isTemplate()
Returns true if it is a template. |
boolean |
isVisible()
Checks if the instance is visible. |
void |
moveOperands(java.util.Vector list,
int rank)
Moves the specified list of the instance children to the specified rank. |
void |
removeAllModelListener()
Removes all the listeners. |
void |
removeModelListener(ModelListener modelListener)
Removes a listener. |
void |
setAreOperandsMovable(boolean areOperandsMovable)
|
void |
setAsOperandPriority(int asOperandPriority)
Sets the as operand priority |
void |
setAsOperatorPriority(int asOperatorPriority)
Sets the as operator priority |
void |
setCrossRef(boolean ref)
|
void |
setIconName(java.lang.String iconName)
Associates an icon name to the instance. |
void |
setIsIconifiable(boolean isIconifiable)
Sets the instance as iconifiable. |
void |
setIsTemplate(boolean isTemplate)
Sets the instance as a template. |
void |
setIsVisble(boolean isVisible)
Sets the instance as vissible or not. |
void |
setResourceIdentifier(java.lang.String resourceIdentifier)
Sets the resource identifier of the instance. |
void |
setValue(java.lang.String value)
Sets the value. |
void |
uniconify()
Uniconifies the instance. |
void |
uniconifyAll()
Uniconifies all the iconified parts of the instance. |
| Methods inherited from class fr.ove.openmath.jome.model.Node |
addChild, addChild, clone, computeDepth, computeNbStrahler, duplicate, getChild, getChildren, getDepth, getFather, getNbChildren, getNbStrahler, getRank, hasChild, moveChildren, removeAll, removeChild, removeChild, setFather, setNbStrahler |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FormulaTreeStructure()
| Method Detail |
public void setCrossRef(boolean ref)
public boolean getCrossRef()
public void addModelListener(ModelListener modelListener)
modelListener - a listener to add.public void removeModelListener(ModelListener modelListener)
modelListener - a listener to remove.public void removeAllModelListener()
public void fireModelEvent(ModelEvent modelEvent)
modelEvent - event encapsulating relevant information.public java.util.Vector getListeners()
public void setResourceIdentifier(java.lang.String resourceIdentifier)
public java.lang.String getResourceIdentifier()
public void setAsOperatorPriority(int asOperatorPriority)
asOperatorPriority - the prioritypublic int getAsOperatorPriority()
public void setAsOperandPriority(int asOperandPriority)
asOperandPriority - the prioritypublic int getAsOperandPriority()
public boolean isTemplate()
true if it is a template.false otherwise.
public void setIsTemplate(boolean isTemplate)
public FormulaTreeStructure findLocation(FormulaTreeStructure current)
current - the current insert position in the formula tree.
public FormulaTreeStructure goTo(int priority)
priority - the specified priority.
public void setAreOperandsMovable(boolean areOperandsMovable)
public boolean getAreOperandsMovable()
public void moveOperands(java.util.Vector list,
int rank)
list - the list of the instance operands to move.rank - the specified rank.public boolean isEqual(Comparable toCompare)
isEqual in interface ComparabletoCompare - the instance to compare with the current instance.public boolean isGreater(Comparable toCompare)
isGreater in interface ComparabletoCompare - the instance to compare with the current instance.public boolean isGreaterOrEqual(Comparable toCompare)
isGreaterOrEqual in interface ComparabletoCompare - the instance to compare with the current instance.public boolean isLesser(Comparable toCompare)
isLesser in interface ComparabletoCompare - the instance to compare with the current instance.public boolean isLesserOrEqual(Comparable toCompare)
isLesserOrEqual in interface ComparabletoCompare - the instance to compare with the current instance.public void setIconName(java.lang.String iconName)
setIconName in interface IconifiableiconName - the name of the iconpublic java.lang.String getIconName()
getIconName in interface Iconifiablepublic boolean isIcon()
isIcon in interface Iconifiabletrue if the instance is an icon. false otherwise.public void iconify()
iconify in interface Iconifiablepublic void uniconify()
uniconify in interface Iconifiablepublic void uniconifyAll()
uniconifyAll in interface Iconifiablepublic void setIsIconifiable(boolean isIconifiable)
setIsIconifiable in interface IconifiableisIconifiable - true if the instance is iconifiable.
false otherwise.public boolean isIconifiable()
true if the instance is iconifiable.
false otherwise.
isIconifiable in interface Iconifiablepublic void consumeControlEvent(ControlEvent controlEvent)
consumeControlEvent in interface ControlListenercontrolEvent - the event to consume.public void setIsVisble(boolean isVisible)
setIsVisble in interface MaskableisVisible - true if the instance is visible. false otherwise.public boolean isVisible()
isVisible in interface Maskablepublic void setValue(java.lang.String value)
setValue in interface Modifiablevalue - the value to set.public java.lang.String getValue()
getValue in interface Modifiablepublic abstract boolean isOperator()
true if it is an operator. false otherwise.public abstract FormulaTreeStructure insert(FormulaTreeStructure current)
current - the current insertion position.
public abstract java.lang.String createLinear(java.lang.String linear)
public abstract java.lang.String evaluate()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||