Exemplo n.º 1
0
  /* (non-Javadoc)
   * @see de.miethxml.kabeja.parser.table.DXFTableHandler#parseGroup(int, de.miethxml.kabeja.parser.DXFValue)
   */
  public void parseGroup(int groupCode, DXFValue value) {
    switch (groupCode) {
      case GROUPCODE_NAME:
        style.setName(value.getValue());

        break;

      case GROUPCODE_TEXT_HEIGHT:
        style.setTextHeight(value.getDoubleValue());

        break;

      case GROUPCODE_WIDTH_FACTOR:
        style.setWidthFactor(value.getDoubleValue());

        break;

      case GROUPCODE_OBLIQUE_ANGLE:
        style.setObliqueAngle(value.getDoubleValue());

        break;

      case GROUPCODE_TEXT_GENERATION_FLAG:
        style.setTextGenerationFlag(value.getIntegerValue());

        break;

      case GROUPCODE_LAST_HEIGHT:
        style.setLastHeight(value.getDoubleValue());

        break;

      case GROUPCODE_FONT_FILE:
        style.setFontFile(value.getValue());

        break;

      case GROUPCODE_BIG_FONT_FILE:
        style.setBigFontFile(value.getValue());

        break;

      case GROUPCODE_FLAGS:
        style.setFlags(value.getIntegerValue());

        break;
    }
  }
  protected void parseCommonGroupCode(int groupCode, DXFValue value, DXFObject obj) {
    switch (groupCode) {
      case GROUPCODE_HANDLE_ID:
        obj.setID(value.getValue());

        break;

      case GROUPCODE_HARDOWNER_ID:
        obj.setHardOwnerID(value.getValue());

        break;

      case GROUPCODE_SOFTPOINTER_ID:
        obj.setSoftPointerID(value.getValue());

        break;
    }
  }