Dimension d = null; String postfix = ""; if ( source != null ) { if ( ( d = ((SComponent)source).getPreferredSize() ) != null ) d = ((SComponent)source).getPreferredSize(); else if ( ( d = ((SComponent)source).getPreferredPercentageSize() ) != null ) { d = ((SComponent)source).getPreferredPercentageSize(); postfix = "%"; } } else return "empty source";
SDimension d = ((SComponent)source).getPreferredSize();
	public String paramString()     {        String typeStr;        Dimension d = null;        String postfix = "";        if ( source != null )         {			if ( ( d = ((SComponent)source).getPreferredSize() ) != null )            	d = ((SComponent)source).getPreferredSize();			else			if ( ( d = ((SComponent)source).getPreferredPercentageSize() ) != null )             {            	d = ((SComponent)source).getPreferredPercentageSize();                postfix = "%";			 }         }		else        	return "empty source";        switch(id) {          case COMPONENT_SHOWN:              typeStr = "COMPONENT_SHOWN";              break;          case COMPONENT_HIDDEN:              typeStr = "COMPONENT_HIDDEN";              break;          case COMPONENT_MOVED:              typeStr = "COMPONENT_MOVED ("+                          d.width+postfix+"x"+d.height+postfix+")";              break;          case COMPONENT_RESIZED:              typeStr = "COMPONENT_RESIZED ("+                          d.width+postfix+"x"+d.height+postfix+")";              break;          default:              typeStr = "unknown type";        }        return typeStr;     }