/**
   * Returns the number of wireframe indices of the given object.
   *
   * @param the id of the given object.
   * @return the object's number of indices.
   */
  public static int getWireIndicesSize(Integer id) {
    int type =
        (Integer)
            GraphicController.getController().getProperty(id, GraphicObjectProperties.__GO_TYPE__);

    switch (type) {
      case GraphicObjectProperties.__GO_ARC__:
        return ArcDecomposer.getWireIndicesSize();
      case GraphicObjectProperties.__GO_CHAMP__:
        return ChampDecomposer.getWireIndicesSize(id);
      case GraphicObjectProperties.__GO_RECTANGLE__:
        return RectangleDecomposer.getWireIndicesSize();
      case GraphicObjectProperties.__GO_SEGS__:
        return SegsDecomposer.getWireIndicesSize(id);
      default:
        return 0;
    }
  }