Пример #1
0
  public AlgoColumnName(Construction cons, String label, GeoElement geo) {
    super(cons);
    this.geo = geo;

    text = new GeoText(cons);
    text.setIsTextCommand(true); // stop editing as text
    setInputOutput(); // for AlgoElement

    // compute value of dependent number
    compute();
    text.setLabel(label);
  }
Пример #2
0
  public AlgoLaTeX(Construction cons, String label, GeoElement geo) {
    super(cons);
    this.geo = geo;
    this.substituteVars = null;
    this.showName = null;
    text = new GeoText(cons);

    text.setIsTextCommand(true); // stop editing as text
    setInputOutput(); // for AlgoElement

    // compute value of dependent number
    compute();
    text.setLabel(label);

    // set sans-serif LaTeX default
    text.setSerifFont(false);
  }
Пример #3
0
  public AlgoLaTeX(
      Construction cons,
      String label,
      GeoElement geo,
      GeoBoolean substituteVars,
      GeoBoolean showName) {
    super(cons);
    this.geo = geo;
    this.substituteVars = substituteVars;
    this.showName = showName;
    text = new GeoText(cons);
    setInputOutput(); // for AlgoElement

    // compute value of dependent number
    compute();
    text.setLabel(label);

    // set sans-serif LaTeX default
    text.setSerifFont(false);
  }