Exemplo n.º 1
0
  public void updateStemPlot(String latex) {
    btnOptions.setVisible(false);
    btnExport.setVisible(false);

    String latexStr = DrawEquationWeb.inputLatexCosmetics(latex);
    if (app.has(Feature.JLM_IN_WEB)) {
      DrawEquationWeb.paintOnCanvas(sample, latexStr, latexCanvas, app.getFontSize());

    } else {

      imageContainer.setText("");
      DrawEquationWeb.drawEquationAlgebraView(
          imageContainer.getElement(), "\\mathrm {" + latexStr + "}", true);
    }

    if (hasControlPanel) {
      controlDecks.showWidget(STEM_IDX);
    }

    displayDeckPanel.showWidget(IMAGE_IDX);
  }