home *** CD-ROM | disk | FTP | other *** search
- package webeq3.schema;
-
- import webeq3.app.Equation;
- import webeq3.util.OutputHandler;
-
- public class MSqrt extends MRoot {
- public MSqrt(Box var1) {
- super(var1);
- super.type = 4;
- }
-
- public MSqrt() {
- super.type = 4;
- }
-
- public MSqrt(Equation var1) {
- super(var1);
- super.type = 4;
- }
-
- public void size() {
- int var1 = super.children.size();
- if (var1 != 2 || !"webeq3.schema.Box".equals(((Box)this).getChild(1).getClass().getName())) {
- if (var1 == 1) {
- Box var2 = new Box(this);
- ((Box)this).addChild(var2);
- } else if (var1 == 0) {
- Box var4 = new Box(this);
- ((Box)this).addChild(var4);
- Box var3 = new Box(this);
- ((Box)this).addChild(var3);
- } else {
- MRow var5 = new MRow(this);
-
- while(super.children.size() > 0) {
- ((Box)var5).addChild(((Box)this).removeChildAt(0));
- }
-
- ((Box)this).addChild(var5);
- Box var6 = new Box(this);
- ((Box)this).addChild(var6);
- }
- }
-
- super.size();
- }
-
- public void printSelected(String var1, OutputHandler var2, boolean var3, boolean var4, String var5, boolean var6, int var7) {
- if (var3 && !super.reverse_video) {
- for(int var9 = 0; var9 < super.children.size(); ++var9) {
- ((Box)this).getChild(var9).printSelected(var1, var2, var3, var4, var5, var6, var7);
- }
- } else if (var6 && super.cpeer != null) {
- super.cpeer.printSelected(var1, var2, var3, var4, var5, var6, var7);
- } else if (super.children.size() == 0) {
- var2.println(var1 + ((Box)this).make_head(false, var5) + "</" + ((Box)this).make_tag(var5) + ">");
- } else {
- var2.println(var1 + ((Box)this).make_head(false, var5));
- String var8 = var1 + " ";
- ((Box)this).getChild(0).printSelected(var8, var2, var3, var4, var5, var6, var7);
- var2.println(var1 + "</" + ((Box)this).make_tag(var5) + ">");
- }
-
- }
- }
-