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 the operator whose symbol is located under its operand.<BR>
9 * The symbol is represented as a simple string
10 *
11 * @author © 1999 DIRAT Laurent
12 * @version 2.0 15/12/1999
13 */
14 public class StringUnderOperatorLayout extends UnderOperatorLayout {
15 /***
16 * Returns the display of the operator
17 */
18 public Display createOperatorDisplay() {
19 Operator fts = (Operator) displayToLay.getListener();
20
21 StringDisplay stringDisplay = new StringDisplay(displayToLay.getGraphicContext(), fts.getTheOperator(), true);
22
23 return stringDisplay;
24 }
25 }