Exemple #1
0
  /**
   * Apply style on setExprs
   *
   * @param exprs the expression to be parsed
   */
  @Override
  public void setExprs(ScilabType exprs) {
    super.setExprs(exprs);

    final StyleMap map = new StyleMap(getStyle());
    map.put(mxConstants.STYLE_FONTFAMILY, getFont().getName());
    map.put(mxConstants.STYLE_FONTSIZE, Integer.toString(getFontSize()));
    setStyle(map.toString());

    setValue(getLocalExprs().getData()[0][0]);
  }