View Javadoc

1   package fr.ove.openmath.jome.ctrlview.bidim;
2   
3   import java.awt.*;
4   import fr.ove.openmath.jome.ctrlview.bidim.*;
5   import fr.ove.openmath.jome.model.*;
6   
7   /***
8   * Layout manager that lays the display of an operator whose symbol is located between its 2 operands.<BR>
9   * Rendering is done vertically, the first operand on top, the symbol in the middle and the second operand
10  * under the 2 previous.<BR>
11  * The symbol is rendered with a simple string.
12  *
13  * @author © 1999 DIRAT Laurent
14  * @version 2.0 15/12/1999
15  */
16  public class StringBetweenOperatorLayout extends BetweenOperatorLayout {
17      /***
18      * Returns the display of the operator
19      */
20      public Display createOperatorDisplay() {
21          Operator fts = (Operator) displayToLay.getListener();
22          // On crÈÈ un display pour l'opÈrateur.
23          StringDisplay stringDisplay = new StringDisplay(displayToLay.getGraphicContext(), fts.getTheOperator(), true);
24          
25          return stringDisplay;
26      }
27  }