Changeset 351 for trunk/loci/visbio/view


Ignore:
Timestamp:
04/26/05 15:23:38 (15 years ago)
Author:
curtis
Message:

Eliminate all references to old loci.ome.xml package, permanently.
Restore some state logic (VisBio options file).

Location:
trunk/loci/visbio/view
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/visbio/view/DisplayManager.java

    r346 r351  
    2525 
    2626import java.awt.Component; 
     27import java.io.BufferedReader; 
     28import java.io.PrintWriter; 
    2729//import java.util.Vector; 
    2830import javax.swing.JOptionPane; 
    29 //import loci.ome.xml.CAElement; 
    30 //import loci.ome.xml.OMEElement; 
    3131import loci.visbio.*; 
    3232import loci.visbio.help.HelpManager; 
     
    142142  protected static final String DISPLAY_MANAGER = "VisBio_DisplayManager"; 
    143143 
    144   /** Writes the current state to the given XML object. */ 
    145   /*public void saveState(OMEElement ome) throws SaveException { 
     144  /** Writes the current state to the given writer. */ 
     145  public void saveState(PrintWriter out) throws SaveException { 
    146146    DisplayWindow[] windows = getDisplays(); 
    147147 
     148    /* CTR TODO for v3.00 final 
    148149    // save number of displays 
    149150    CAElement custom = ome.getCustomAttr(); 
     
    153154    // save all displays 
    154155    for (int i=0; i<windows.length; i++) windows[i].saveState(ome, i); 
    155   }*/ 
    156  
    157   /** Restores the current state from the given XML object. */ 
    158   /*public void restoreState(OMEElement ome) throws SaveException { 
     156    */ 
     157  } 
     158 
     159  /** Restores the current state from the given reader. */ 
     160  public void restoreState(BufferedReader in) throws SaveException { 
     161    /* CTR TODO for v3.00 final 
    159162    CAElement custom = ome.getCustomAttr(); 
    160163 
     
    200203      if (!vn.contains(display)) removeDisplay(display); 
    201204    } 
    202   }*/ 
     205    */ 
     206  } 
    203207 
    204208 
  • trunk/loci/visbio/view/DisplayWindow.java

    r346 r351  
    2626import java.awt.*; 
    2727import java.awt.event.*; 
     28import java.io.BufferedReader; 
     29import java.io.PrintWriter; 
    2830import javax.swing.JFrame; 
    2931import javax.swing.JPanel; 
    30 //import loci.ome.xml.CAElement; 
    31 //import loci.ome.xml.OMEElement; 
    3232import loci.visbio.VisBioFrame; 
    3333import loci.visbio.WindowManager; 
     
    206206  protected int index; 
    207207 
    208   /** Writes the current state to the given XML object. */ 
    209   /*public void saveState(OMEElement ome, int id) { 
     208  /** Writes the current state to the given writer. */ 
     209  public void saveState(PrintWriter out, int id) { 
     210    /* CTR TODO for v3.00 final 
    210211    custom = ome.getCustomAttr(); 
    211212    custom.createElement(DISPLAY_DIALOG); 
     
    216217    captureHandler.saveState(); 
    217218    transformHandler.saveState(); 
    218   }*/ 
    219  
    220   /** Restores the current state from the given XML object. */ 
    221   /*public void restoreState(OMEElement ome, int id) { 
     219    */ 
     220  } 
     221 
     222  /** Restores the current state from the given reader. */ 
     223  public void restoreState(BufferedReader in, int id) { 
     224    /* CTR TODO for v3.00 final 
    222225    custom = ome.getCustomAttr(); 
    223226    String[] idList = custom.getAttributes(DISPLAY_DIALOG, "id"); 
     
    247250    captureHandler.restoreState(); 
    248251    transformHandler.restoreState(); 
    249   }*/ 
     252    */ 
     253  } 
    250254 
    251255  /** Sets value for the given attribute. */ 
Note: See TracChangeset for help on using the changeset viewer.