1 package fr.ove.openmath.jome.ctrlview.bidim;
2
3 import java.awt.*;
4 import fr.ove.openmath.jome.ctrlview.bidim.Display;
5 import fr.ove.openmath.jome.ctrlview.bidim.DisplayLayout;
6 import fr.ove.openmath.jome.ctrlview.bidim.HorizontalLayout;
7 import fr.ove.openmath.jome.ctrlview.bidim.selection.events.SelectionEvent;
8 import fr.ove.openmath.jome.model.*;
9
10 /***
11 * A layout manager that lays components to place them as the different elements of a
12 * sum.<BR>
13 * The different elements are contained in the display in the following order :
14 * <UL>
15 * <LI>the symbol sigma.</LI>
16 * <LI>the expression.</LI>
17 * <LI>the lower bound.</LI>
18 * <LI>the upper bound.</LI>
19 *</UL>
20 *
21 * Bounds are optional elements.
22 *
23 * @author © 1999 DIRAT Laurent
24 * @version 2.0 16/12/1999
25 */
26 public class SigmaLayout extends MapsToSigmaLayout {
27 /***
28 * Returns the display of the operator
29 */
30 public Display createOperatorDisplay() {
31 SymbolDisplay sigma = new SymbolDisplay(displayToLay.getGraphicContext(),
32 new ImageSymbol("Sigma", displayToLay));
33
34 sigma.setIsSymbolOperatorDisplay(true);
35
36 return sigma;
37 }
38 }