home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2001 December / dppcpro1201.iso / Extras / maple / Viewer / WebEQ / MMLViewerInstall.cab / MMLViewerApplet.cab / webeq3 / schema / LineBreakRewriter.class (.txt) < prev    next >
Encoding:
Java Class File  |  2001-05-24  |  911 b   |  32 lines

  1. package webeq3.schema;
  2.  
  3. import webeq3.app.Equation;
  4.  
  5. public class LineBreakRewriter extends Box {
  6.    Box lb_rewrite;
  7.    boolean useLinearForm = false;
  8.  
  9.    public LineBreakRewriter(Box var1) {
  10.       super(var1);
  11.    }
  12.  
  13.    public LineBreakRewriter() {
  14.    }
  15.  
  16.    public LineBreakRewriter(Equation var1) {
  17.       super(var1);
  18.    }
  19.  
  20.    public Box getDisplayChild(int var1) {
  21.       return this.useLinearForm ? this.lb_rewrite : ((Box)this).getChild(var1);
  22.    }
  23.  
  24.    public int getNumDisplayChildren() {
  25.       return this.useLinearForm ? 1 : super.children.size();
  26.    }
  27.  
  28.    public boolean isAtomic() {
  29.       return this.useLinearForm ? this.lb_rewrite.isAtomic() : true;
  30.    }
  31. }
  32.