public ImageIcon getIcon ( ) { if ( confidence == Alert . CONFIDENCE_FALSE_POSITIVE ) { // Special case - theres no risk - use the green flag return DisplayUtils . getScaledIcon ( Constant . OK_FLAG_IMAGE_URL ) ; } switch ( risk ) { case Alert . RISK_INFO : return DisplayUtils . getScaledIcon ( Constant . INFO_FLAG_IMAGE_URL ) ; case Alert . RISK_LOW : return DisplayUtils . getScaledIcon ( Constant . LOW_FLAG_IMAGE_URL ) ; case Alert . RISK_MEDIUM : return DisplayUtils . getScaledIcon ( Constant . MED_FLAG_IMAGE_URL ) ; case Alert . RISK_HIGH : return DisplayUtils . getScaledIcon ( Constant . HIGH_FLAG_IMAGE_URL ) ; } return null ; }
Gets the correctly scaled icon for this alert .