void setExtendedRst(ExtRst ext_rst) {
   if (ext_rst != null) {
     field_2_optionflags = extBit.setByte(field_2_optionflags);
   } else {
     field_2_optionflags = extBit.clearByte(field_2_optionflags);
   }
   this.field_5_ext_rst = ext_rst;
 }
 public void removeFormatRun(FormatRun r) {
   field_4_format_runs.remove(r);
   if (field_4_format_runs.size() == 0) {
     field_4_format_runs = null;
     field_2_optionflags = richText.clearByte(field_2_optionflags);
   }
 }
  /**
   * set the actual string this contains
   *
   * @param string the text
   */
  public void setString(String string) {
    field_3_string = string;
    setCharCount((short) field_3_string.length());
    // scan for characters greater than 255 ... if any are
    // present, we have to use 16-bit encoding. Otherwise, we
    // can use 8-bit encoding
    boolean useUTF16 = false;
    int strlen = string.length();

    for (int j = 0; j < strlen; j++) {
      if (string.charAt(j) > 255) {
        useUTF16 = true;
        break;
      }
    }
    if (useUTF16)
      // Set the uncompressed bit
      field_2_optionflags = highByte.setByte(field_2_optionflags);
    else field_2_optionflags = highByte.clearByte(field_2_optionflags);
  }
  /**
   * Adds a font run to the formatted string.
   *
   * <p>If a font run exists at the current charcter location, then it is replaced with the font run
   * to be added.
   */
  public void addFormatRun(FormatRun r) {
    if (field_4_format_runs == null) {
      field_4_format_runs = new ArrayList<FormatRun>();
    }

    int index = findFormatRunAt(r._character);
    if (index != -1) field_4_format_runs.remove(index);

    field_4_format_runs.add(r);
    // Need to sort the font runs to ensure that the font runs appear in
    // character order
    Collections.sort(field_4_format_runs);

    // Make sure that we now say that we are a rich string
    field_2_optionflags = richText.setByte(field_2_optionflags);
  }
 public boolean getCheckEmptyCellRef() {
   return checkEmptyCellRef.isSet(errorCheck);
 }
 public boolean getPerformDataValidation() {
   return performDataValidation.isSet(errorCheck);
 }
 public boolean getCheckDateTimeFormats() {
   return checkDateTimeFormats.isSet(errorCheck);
 }
 public boolean getCheckInconsistentRanges() {
   return checkInconsistentRanges.isSet(errorCheck);
 }
 /** Sets the default date settings field value. use default date setttings for this axis */
 public void setDefaultDateSettings(boolean value) {
   field_9_options = defaultDateSettings.setShortBoolean(field_9_options, value);
 }
 /** Sets the default cross field value. use the default crossing point */
 public void setDefaultCross(boolean value) {
   field_9_options = defaultCross.setShortBoolean(field_9_options, value);
 }
 /** Sets the default minimum field value. use the default minimum category */
 public void setDefaultMinimum(boolean value) {
   field_9_options = defaultMinimum.setShortBoolean(field_9_options, value);
 }
 private boolean isExtendedText() {
   return extBit.isSet(getOptionFlags());
 }
 private boolean isRichText() {
   return richText.isSet(getOptionFlags());
 }
 public void clearFormatting() {
   field_4_format_runs = null;
   field_2_optionflags = richText.clearByte(field_2_optionflags);
 }
 /** Sets the default base field value. use the default base unit */
 public void setDefaultBase(boolean value) {
   field_9_options = defaultBase.setShortBoolean(field_9_options, value);
 }
 /**
  * use the default maximum category
  *
  * @return the default maximum field value.
  */
 public boolean isDefaultMaximum() {
   return defaultMaximum.isSet(field_9_options);
 }
 /**
  * use the default base unit
  *
  * @return the default base field value.
  */
 public boolean isDefaultBase() {
   return defaultBase.isSet(field_9_options);
 }
 /** Sets the default major field value. use the default major unit */
 public void setDefaultMajor(boolean value) {
   field_9_options = defaultMajor.setShortBoolean(field_9_options, value);
 }
 /**
  * use the default crossing point
  *
  * @return the default cross field value.
  */
 public boolean isDefaultCross() {
   return defaultCross.isSet(field_9_options);
 }
 /**
  * use the default major unit
  *
  * @return the default major field value.
  */
 public boolean isDefaultMajor() {
   return defaultMajor.isSet(field_9_options);
 }
 /**
  * use default date setttings for this axis
  *
  * @return the default date settings field value.
  */
 public boolean isDefaultDateSettings() {
   return defaultDateSettings.isSet(field_9_options);
 }
 /** Sets the default minor unit field value. use the default minor unit */
 public void setDefaultMinorUnit(boolean value) {
   field_9_options = defaultMinorUnit.setShortBoolean(field_9_options, value);
 }
 public boolean getCheckInconsistentFormulas() {
   return checkInconsistentFormulas.isSet(errorCheck);
 }
 /**
  * use the default minor unit
  *
  * @return the default minor unit field value.
  */
 public boolean isDefaultMinorUnit() {
   return defaultMinorUnit.isSet(field_9_options);
 }
 public boolean getCheckUnprotectedFormulas() {
   return checkUnprotectedFormulas.isSet(errorCheck);
 }
 /** Sets the isDate field value. this is a date axis */
 public void setIsDate(boolean value) {
   field_9_options = isDate.setShortBoolean(field_9_options, value);
 }
 public boolean getCheckCalculationErrors() {
   return checkCalculationErrors.isSet(errorCheck);
 }
 /**
  * this is a date axis
  *
  * @return the isDate field value.
  */
 public boolean isIsDate() {
   return isDate.isSet(field_9_options);
 }
 public boolean getCheckNumbersAsText() {
   return checkNumbersAsText.isSet(errorCheck);
 }
 /**
  * ??
  *
  * @return the auto plot area field value.
  */
 public boolean isAutoPlotArea() {
   return autoPlotArea.isSet(field_1_flags);
 }