Changeset 2677


Ignore:
Timestamp:
04/25/07 14:29:23 (13 years ago)
Author:
curtis
Message:

Deprecate old-style methods.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/FileStitcher.java

    r2674 r2677  
    144144   *   </ul> 
    145145   */ 
    146   public int[] getAxisTypes(String id) 
    147     throws FormatException, IOException 
    148   { 
    149     if (!id.equals(currentId)) setId(id); 
     146  public int[] getAxisTypes() { 
    150147    return ag[getSeries()].getAxisTypes(); 
    151148  } 
     
    160157   *   </ul> 
    161158   */ 
    162   public void setAxisTypes(String id, int[] axes) 
    163     throws FormatException, IOException 
    164   { 
    165     if (!id.equals(currentId)) setId(id); 
     159  public void setAxisTypes(int[] axes) throws FormatException { 
    166160    ag[getSeries()].setAxisTypes(axes); 
    167161    computeAxisLengths(); 
     
    169163 
    170164  /** Gets the file pattern object used to build the list of files. */ 
    171   public FilePattern getFilePattern(String id) 
    172     throws FormatException, IOException 
    173   { 
    174     if (!id.equals(currentId)) initFile(id); 
     165  public FilePattern getFilePattern() { 
    175166    return fp; 
    176167  } 
     
    180171   * which dimensional axes are which. 
    181172   */ 
    182   public AxisGuesser getAxisGuesser(String id) 
    183     throws FormatException, IOException 
    184   { 
    185     if (!id.equals(currentId)) setId(id); 
     173  public AxisGuesser getAxisGuesser() { 
    186174    return ag[getSeries()]; 
    187175  } 
     
    775763 
    776764  /** Computes axis length arrays, and total axis lengths. */ 
    777   protected void computeAxisLengths() throws FormatException, IOException { 
     765  protected void computeAxisLengths() throws FormatException { 
    778766    int sno = getSeries(); 
    779767 
     
    885873  } 
    886874 
     875  // -- Deprecated FileStitcher API methods -- 
     876 
     877  /** @deprecated Replaced by {@link #getAxisTypes()} */ 
     878  public int[] getAxisTypes(String id) 
     879    throws FormatException, IOException 
     880  { 
     881    if (!id.equals(currentId)) setId(id); 
     882    return getAxisTypes(); 
     883  } 
     884 
     885  /** @deprecated Replaced by {@link #setAxisTypes(int[])} */ 
     886  public void setAxisTypes(String id, int[] axes) 
     887    throws FormatException, IOException 
     888  { 
     889    if (!id.equals(currentId)) setId(id); 
     890    setAxisTypes(axes); 
     891  } 
     892 
     893  /** @deprecated Replaced by {@link #getFilePattern()} */ 
     894  public FilePattern getFilePattern(String id) 
     895    throws FormatException, IOException 
     896  { 
     897    if (!id.equals(currentId)) initFile(id); 
     898    return getFilePattern(); 
     899  } 
     900 
     901  /** @deprecated Replaced by {@link #getAxisGuesser()} */ 
     902  public AxisGuesser getAxisGuesser(String id) 
     903    throws FormatException, IOException 
     904  { 
     905    if (!id.equals(currentId)) initFile(id); 
     906    return getAxisGuesser(); 
     907  } 
     908 
    887909  // -- Deprecated IFormatReader API methods -- 
    888910 
Note: See TracChangeset for help on using the changeset viewer.