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);
  }
Exemple #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);
  }