|
|||||||||||
| 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
fr.ove.openmath.jome.model.Icon
This is an fictive operator which replaces a real part (real in a syntactical
mathematical meaning) of the formula by an icon.
Icon represents a node in the formula tree structure.
Its children are the iconified parts of the formula.
| Constructor Summary | |
Icon(FormulaTreeStructure toIconify)
The Constructor. |
|
Icon(java.lang.String iconName)
The Constructor. |
|
| Method Summary | |
void |
addIconified(FormulaTreeStructure fts)
|
java.lang.String |
createLinear(java.lang.String linear)
The Creation of the corresponding linear expression of the formula. |
java.lang.String |
evaluate()
Evaluates the instance. |
FormulaTreeStructure |
getIconified(int rank)
Returns the formula tree structure at the specified rank in the list of the fts to iconify. |
java.lang.String |
getIconName()
Returns the name of the icon associated to the instance. |
int |
getNbIconified()
Returns the number of iconified operators. |
int |
getRankOfIconified(int rank)
Returns the rank in the formula tree structure of the iconified element at the specified rank in the list of iconified elments, before iconification. |
void |
iconify()
Iconifies the instance. |
FormulaTreeStructure |
insert(FormulaTreeStructure current)
Inserts the icon (node) in the formula tree structure. |
boolean |
isIcon()
|
boolean |
isIconifiable()
Returns true if the instance is iconifiable.
|
boolean |
isOperator()
To check is the instance is an operator. |
boolean |
isSubstitution()
Returns true if the instance is a substitution.
|
void |
setIconName(java.lang.String iconName)
Associates an icon name to the instance. |
void |
setIsSubstitution(boolean isSubstitution)
Sets if the instance represents a substitution or not. |
void |
uniconify()
Uniconifies 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 Icon(FormulaTreeStructure toIconify)
toIconify - the element (or part of the element, according to the case) to iconify
in order to get the information for the icon namepublic Icon(java.lang.String iconName)
iconName - the name of the icon| Method Detail |
public FormulaTreeStructure insert(FormulaTreeStructure current)
insert in class FormulaTreeStructurecurrent - the position in the formula tree where the operator is to be insert.
public boolean isOperator()
isOperator in class FormulaTreeStructuretrue if it is an operator. false otherwise.public java.lang.String createLinear(java.lang.String linear)
createLinear in class FormulaTreeStructurepublic void setIsSubstitution(boolean isSubstitution)
isSubstitution - true if the instance is a substitution.
false otherwise.public boolean isSubstitution()
true if the instance is a substitution.
false otherwise.
public void addIconified(FormulaTreeStructure fts)
public int getNbIconified()
public FormulaTreeStructure getIconified(int rank)
rank - a rank into the list of fts to iconify.
public int getRankOfIconified(int rank)
rank - a rank into the list of fts to iconify.
public java.lang.String evaluate()
evaluate in class FormulaTreeStructurepublic boolean isIcon()
isIcon in interface IconifiableisIcon in class FormulaTreeStructuretrue if the instance is an icon. false otherwise.public void setIconName(java.lang.String iconName)
setIconName in interface IconifiablesetIconName in class FormulaTreeStructureiconName - the name of the iconpublic java.lang.String getIconName()
getIconName in interface IconifiablegetIconName in class FormulaTreeStructurepublic boolean isIconifiable()
true if the instance is iconifiable.
false otherwise.
isIconifiable in interface IconifiableisIconifiable in class FormulaTreeStructurepublic void iconify()
iconify in interface Iconifiableiconify in class FormulaTreeStructurepublic void uniconify()
uniconify in interface Iconifiableuniconify in class FormulaTreeStructure
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||