mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/observation/ObservationImageService.java
public String tryGetMiniObservationImage(final GuiObservation observation, final int index)
    {
        final String path = "thoseIcons/observations/mini-icons/";
        
        if (observation != null && observation.getRelatedObservationModels() != null 
                && (index >= 0 && index < observation.getRelatedObservationModels().size()))
        {
            
            final RelatedObservationIdentity model = observation.getRelatedObservationModels().get(index);
            
            if (model != null && model.getObservationSubType() != null)
            {
                return path + model.getObservationSubType().toString().toLowerCase() + PNG_EXTENSION;
            }
        }
        else 
        {
            Logging.log(LogService.LOG_ERROR, "Invalid index, invalid gui observation, " 
                    + "or invalid list of related observations has prevented mini-icon from being retrieved.");
        }
        
        return path + DEFAULT_IMAGE;
    }
/**
    * Method to retrieve an image path for a related observation identified by the 
    * given index. Path returned points to the mini version of the image.
    * @param observation
    *   the gui observation model which holds the related observation type in question
    * @param index
    *   the index to find the related observation type at
    * @return
    *   the path of the image that is to be displayed for the related observation's observation type
    */
Method to retrieve an image path for a related observation identified by the
given index. Path returned points to the mini version of the image.
@param observation
the gui observation model which holds the related observation type in question
@param index
the index to find the related observation type at
@return
the path of the image that is to be displayed for the related observation's observation type
Method to retrieve an image path for a related observation identified by the given index . Path returned points to the mini version of the image . @param observation the gui observation model which holds the related observation type in question @param index the index to find the related observation type at @return the path of the image that is to be displayed for the related observation ' s observation type
public String tryGetMiniObservationImage(final GuiObservation observation, final int index)
    {
        final String path = "thoseIcons/observations/mini-icons/";
        if (observation != null && observation.getRelatedObservationModels() != null 
                && (index >= 0 && index < observation.getRelatedObservationModels().size()))
        {
            final RelatedObservationIdentity model = observation.getRelatedObservationModels().get(index);
            if (model != null && model.getObservationSubType() != null)
            {
                return path + model.getObservationSubType().toString().toLowerCase() + PNG_EXTENSION;
            }
        }
        else 
        {
            Logging.log(LogService.LOG_ERROR, "Invalid index, invalid gui observation, " 
                    + "or invalid list of related observations has prevented mini-icon from being retrieved.");
        }
        return path + DEFAULT_IMAGE;
    }
public String tryGetMiniObservationImage ( final GuiObservation observation , final int index ) { final String path = "thoseIcons/observations/mini-icons/" ; if ( observation != null && observation . getRelatedObservationModels ( ) != null && ( index >= 0 && index < observation . getRelatedObservationModels ( ) . size ( ) ) ) { final RelatedObservationIdentity model = observation . getRelatedObservationModels ( ) . get ( index ) ; if ( model != null && model . getObservationSubType ( ) != null ) { return path + model . getObservationSubType ( ) . toString ( ) . toLowerCase ( ) + PNG_EXTENSION ; } } else { Logging . log ( LogService . LOG_ERROR , "Invalid index, invalid gui observation, " + "or invalid list of related observations has prevented mini-icon from being retrieved." ) ; } return path + DEFAULT_IMAGE ; }
Method to retrieve an image path for a related observation identified by the
 given index.
Method to retrieve an image path for a related observation identified by the given index .