annotool.gui.model
Class Utils

java.lang.Object
  extended by annotool.gui.model.Utils

public class Utils
extends java.lang.Object

Utility class for some helper methods.


Field Summary
static java.lang.String CHAIN_EXT
           
static java.lang.String MODEL_EXT
           
 
Constructor Summary
Utils()
           
 
Method Summary
static javax.swing.ImageIcon createImageIcon(java.lang.String path)
          Returns an ImageIcon, or null if the path was invalid.
static java.lang.String getExtension(java.io.File f)
           
static void openRoiZip(java.lang.String path, java.util.HashMap<java.lang.String,ij.gui.Roi> rois, java.util.HashMap<java.lang.String,java.lang.String> classMap, java.lang.String className)
          Method to read a single roi zip file and get a list or roi objects.
static java.lang.String removeExtension(java.lang.String fileName)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODEL_EXT

public static final java.lang.String MODEL_EXT
See Also:
Constant Field Values

CHAIN_EXT

public static final java.lang.String CHAIN_EXT
See Also:
Constant Field Values
Constructor Detail

Utils

public Utils()
Method Detail

getExtension

public static java.lang.String getExtension(java.io.File f)

removeExtension

public static java.lang.String removeExtension(java.lang.String fileName)

createImageIcon

public static javax.swing.ImageIcon createImageIcon(java.lang.String path)
Returns an ImageIcon, or null if the path was invalid.


openRoiZip

public static void openRoiZip(java.lang.String path,
                              java.util.HashMap<java.lang.String,ij.gui.Roi> rois,
                              java.util.HashMap<java.lang.String,java.lang.String> classMap,
                              java.lang.String className)
                       throws java.io.IOException
Method to read a single roi zip file and get a list or roi objects. Based on ImageJ RoiManager method

Parameters:
path -
Throws:
java.io.IOException