fr.ove.openmath.jome.model
Class Bracket

java.lang.Object
  extended byfr.ove.openmath.jome.model.Node
      extended byfr.ove.openmath.jome.model.FormulaTreeStructure
          extended byfr.ove.openmath.jome.model.Operator
              extended byfr.ove.openmath.jome.model.UnaryOperator
                  extended byfr.ove.openmath.jome.model.Bracket
All Implemented Interfaces:
java.lang.Cloneable, Comparable, ControlListener, java.util.EventListener, Iconifiable, Maskable, Modifiable, java.io.Serializable

public class Bracket
extends UnaryOperator

The operator bracket.

Version:
2.0 25/06/1999
Author:
© 1999 DIRAT Laurent
See Also:
Serialized Form

Constructor Summary
Bracket()
          The Constructor.
 
Method Summary
 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.
 java.lang.String getIconName()
          Returns the name of the icon associated to the instance.
 FormulaTreeStructure goTo(int priority)
          Returns the father of the node which, from the current instance, have the specified priority.
 FormulaTreeStructure insert(FormulaTreeStructure current)
          Inserts the operator instance in the formula tree, from the current insertion position.
 boolean isVisible()
          Returns true if the brackets have to be displayed.
 void setIsVisible(boolean isVisible)
          Sets if the brackets have to be displayed or not.
 
Methods inherited from class fr.ove.openmath.jome.model.Operator
getTheOperator, getValue, isOperator, setTheOperator, setValue
 
Methods inherited from class fr.ove.openmath.jome.model.FormulaTreeStructure
addModelListener, consumeControlEvent, findLocation, fireModelEvent, getAreOperandsMovable, getAsOperandPriority, getAsOperatorPriority, getCrossRef, getListeners, getResourceIdentifier, iconify, isEqual, isGreater, isGreaterOrEqual, isIcon, isIconifiable, isLesser, isLesserOrEqual, isTemplate, moveOperands, removeAllModelListener, removeModelListener, setAreOperandsMovable, setAsOperandPriority, setAsOperatorPriority, setCrossRef, setIconName, setIsIconifiable, setIsTemplate, setIsVisble, setResourceIdentifier, uniconify, uniconifyAll
 
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

Bracket

public Bracket()
The Constructor.

Method Detail

goTo

public FormulaTreeStructure goTo(int priority)
Returns the father of the node which, from the current instance, have the specified priority.

Overrides:
goTo in class FormulaTreeStructure
Parameters:
priority - the specified priority.
Returns:
the desired father.

insert

public FormulaTreeStructure insert(FormulaTreeStructure current)
Inserts the operator instance in the formula tree, from the current insertion position. (checks the priorities and goes up in the tree if necessary).

Overrides:
insert in class UnaryOperator
Returns:
the new insertion position.

createLinear

public java.lang.String createLinear(java.lang.String linear)
The Creation of the corresponding linear expression of the formula.

Overrides:
createLinear in class UnaryOperator

evaluate

public java.lang.String evaluate()
Evaluates the instance.

Overrides:
evaluate in class UnaryOperator

isVisible

public boolean isVisible()
Returns true if the brackets have to be displayed. false otherwise.

Specified by:
isVisible in interface Maskable
Overrides:
isVisible in class FormulaTreeStructure

setIsVisible

public void setIsVisible(boolean isVisible)
Sets if the brackets have to be displayed or not.

Parameters:
isVisible - true if we want it. false otherwise.

getIconName

public java.lang.String getIconName()
Returns the name of the icon associated to the instance.
The icon name is the name of the ressource identifier where "_Ico" added to the end.

Specified by:
getIconName in interface Iconifiable
Overrides:
getIconName in class FormulaTreeStructure


Copyright © 1999-2007 Universit?© de Nice Sophia-Antipolis, I3S, Ove SARL, DFKI and Universit?§t des Saarlandes. All Rights Reserved.